export type Routes = { '/access_codes/create': { route: '/access_codes/create'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for which you want to create the new access code. */ device_id: string; /** Name of the new 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). */ name?: string | undefined; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Code to be used for access. */ code?: string | undefined; attempt_for_offline_device?: boolean; /** 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). */ common_code_key?: string | undefined; /** 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`. */ prefer_native_scheduling?: boolean | undefined; /** 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). */ use_backup_access_code_pool?: boolean | undefined; /** 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`. */ allow_external_modification?: boolean | undefined; /** 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`. */ is_external_modification_allowed?: boolean | undefined; /** 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. */ preferred_code_length?: number | undefined; /** * @deprecated Use `is_offline_access_code` instead.*/ use_offline_access_code?: boolean | undefined; /** 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). */ is_offline_access_code?: boolean | undefined; /** 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. */ is_one_time_use?: boolean | undefined; /** 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`. */ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; /** Represents a smart lock [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). An 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. Seam 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. In 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. For 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. */ access_code: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Unique identifier for a group of access codes that share the same code. */ common_code_key: string | null; /** Indicates whether the code is set on the device according to a preconfigured schedule. */ is_scheduled_on_device?: boolean | undefined; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Indicates whether the access code is waiting for a code assignment. */ is_waiting_for_code_assignment?: boolean | undefined; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates whether Seam manages the access code. */ is_managed: true; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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). * @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`.*/ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; /** 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`. */ display_status: string; /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */ is_backup_access_code_available: boolean; /** Indicates whether the access code is a backup code. */ is_backup?: boolean | undefined; /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */ pulled_backup_access_code_id?: (string | null) | undefined; /** Indicates whether changes to the access code from external sources are permitted. */ is_external_modification_allowed: boolean; /** Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use. */ is_one_time_use: boolean; /** 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. */ is_offline_access_code: boolean; /** Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; /** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of setting an access code on the device. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */ mutation_code: 'deferring_creation'; /** Date and time at which Seam will attempt to program this access code on the device. */ scheduled_at: string; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of removing an access code from the device. */ mutation_code: 'deleting'; /** 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. */ is_code_usable: boolean; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */ mutation_code: 'updating_code'; /** Previous code configuration. */ from: { /** Previous PIN code. */ code: string | null; }; /** New code configuration. */ to: { /** New PIN code. */ code: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */ mutation_code: 'updating_name'; /** Previous name configuration. */ from: { /** Previous access code name. */ name: string | null; }; /** New name configuration. */ to: { /** New access code name. */ name: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */ mutation_code: 'updating_time_frame'; /** Previous time frame configuration. */ from: { /** Previous start time for the access code. */ starts_at: string | null; /** Previous end time for the access code. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time for the access code. */ starts_at: string | null; /** New end time for the access code. */ ends_at: string | null; }; })[]; }; }; maxDuration: undefined; }; '/access_codes/create_multiple': { route: '/access_codes/create_multiple'; method: 'POST' | 'PUT'; queryParams: {}; jsonBody: { /** IDs of the devices for which you want to create the new access codes. */ device_ids: string[]; /** 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. */ behavior_when_code_cannot_be_shared?: 'throw' | 'create_random_code'; /** Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length. */ preferred_code_length?: number | undefined; /** Name of the new 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). */ name?: string | undefined; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Code to be used for access. */ code?: string | undefined; attempt_for_offline_device?: boolean; /** 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`. */ prefer_native_scheduling?: boolean | undefined; /** 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`. */ allow_external_modification?: boolean | undefined; /** 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`. */ is_external_modification_allowed?: boolean | undefined; /** 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). */ use_backup_access_code_pool?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: { access_codes: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Unique identifier for a group of access codes that share the same code. */ common_code_key: string | null; /** Indicates whether the code is set on the device according to a preconfigured schedule. */ is_scheduled_on_device?: boolean | undefined; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Indicates whether the access code is waiting for a code assignment. */ is_waiting_for_code_assignment?: boolean | undefined; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates whether Seam manages the access code. */ is_managed: true; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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). * @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`.*/ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; /** 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`. */ display_status: string; /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */ is_backup_access_code_available: boolean; /** Indicates whether the access code is a backup code. */ is_backup?: boolean | undefined; /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */ pulled_backup_access_code_id?: (string | null) | undefined; /** Indicates whether changes to the access code from external sources are permitted. */ is_external_modification_allowed: boolean; /** Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use. */ is_one_time_use: boolean; /** 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. */ is_offline_access_code: boolean; /** Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; /** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of setting an access code on the device. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */ mutation_code: 'deferring_creation'; /** Date and time at which Seam will attempt to program this access code on the device. */ scheduled_at: string; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of removing an access code from the device. */ mutation_code: 'deleting'; /** 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. */ is_code_usable: boolean; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */ mutation_code: 'updating_code'; /** Previous code configuration. */ from: { /** Previous PIN code. */ code: string | null; }; /** New code configuration. */ to: { /** New PIN code. */ code: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */ mutation_code: 'updating_name'; /** Previous name configuration. */ from: { /** Previous access code name. */ name: string | null; }; /** New name configuration. */ to: { /** New access code name. */ name: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */ mutation_code: 'updating_time_frame'; /** Previous time frame configuration. */ from: { /** Previous start time for the access code. */ starts_at: string | null; /** Previous end time for the access code. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time for the access code. */ starts_at: string | null; /** New end time for the access code. */ ends_at: string | null; }; })[]; }[]; }; maxDuration: undefined; }; '/access_codes/delete': { route: '/access_codes/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the device for which you want to delete the access code. */ device_id?: string | undefined; /** ID of the access code that you want to delete. */ access_code_id: string; }; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/access_codes/generate_code': { route: '/access_codes/generate_code'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the device for which you want to generate a code. */ device_id: string; }; formData: {}; jsonResponse: { generated_code: { device_id: string; code: string; }; }; maxDuration: undefined; }; '/access_codes/get': { route: '/access_codes/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** 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`. */ device_id?: string | undefined; /** ID of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`. */ access_code_id?: string | undefined; /** Code of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`. */ code?: string | undefined; }; formData: {}; jsonResponse: { /** Represents a smart lock [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). An 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. Seam 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. In 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. For 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. */ access_code: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Unique identifier for a group of access codes that share the same code. */ common_code_key: string | null; /** Indicates whether the code is set on the device according to a preconfigured schedule. */ is_scheduled_on_device?: boolean | undefined; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Indicates whether the access code is waiting for a code assignment. */ is_waiting_for_code_assignment?: boolean | undefined; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates whether Seam manages the access code. */ is_managed: true; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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). * @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`.*/ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; /** 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`. */ display_status: string; /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */ is_backup_access_code_available: boolean; /** Indicates whether the access code is a backup code. */ is_backup?: boolean | undefined; /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */ pulled_backup_access_code_id?: (string | null) | undefined; /** Indicates whether changes to the access code from external sources are permitted. */ is_external_modification_allowed: boolean; /** Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use. */ is_one_time_use: boolean; /** 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. */ is_offline_access_code: boolean; /** Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; /** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of setting an access code on the device. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */ mutation_code: 'deferring_creation'; /** Date and time at which Seam will attempt to program this access code on the device. */ scheduled_at: string; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of removing an access code from the device. */ mutation_code: 'deleting'; /** 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. */ is_code_usable: boolean; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */ mutation_code: 'updating_code'; /** Previous code configuration. */ from: { /** Previous PIN code. */ code: string | null; }; /** New code configuration. */ to: { /** New PIN code. */ code: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */ mutation_code: 'updating_name'; /** Previous name configuration. */ from: { /** Previous access code name. */ name: string | null; }; /** New name configuration. */ to: { /** New access code name. */ name: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */ mutation_code: 'updating_time_frame'; /** Previous time frame configuration. */ from: { /** Previous start time for the access code. */ starts_at: string | null; /** Previous end time for the access code. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time for the access code. */ starts_at: string | null; /** New end time for the access code. */ ends_at: string | null; }; })[]; }; }; maxDuration: undefined; }; '/access_codes/get_timeline': { route: '/access_codes/get_timeline'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access code for which to retrieve the timeline. */ access_code_id: string; /** Maximum number of timeline events to return (default 50, max 200). */ limit?: number; /** Only return events that occurred before this timestamp (ISO 8601 format). */ before?: string | undefined; /** Only return events that occurred after this timestamp (ISO 8601 format). */ after?: string | undefined; /** Filter to only return specific event types. */ event_types?: ('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')[] | undefined; }; formData: {}; jsonResponse: { timeline_events: { /** Unique identifier for this timeline event. */ timeline_event_id: string; /** The type of timeline event. */ event_type: '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'; /** ISO 8601 timestamp when the event occurred. */ occurred_at: string; /** Human-readable description of what happened. */ description: string; /** Information about who or what triggered this event. */ actor: { /** The type of actor that triggered this event. */ type: 'api_key' | 'console_user' | 'system' | 'external'; /** The ID of the actor (API key ID, user ID, etc.). */ id?: string | undefined; /** Human-readable name for the actor. */ display_name?: string | undefined; }; /** Event-specific details and payload data. */ details?: { [x: string]: any; } | undefined; /** IDs of related resources for cross-referencing. */ related_resource_ids?: { device_id?: string | undefined; connected_account_id?: string | undefined; action_attempt_id?: string | undefined; event_id?: string | undefined; } | undefined; }[]; pagination: { has_more: boolean; next_cursor: string | null; prev_cursor: string | null; }; }; maxDuration: undefined; }; '/access_codes/list': { route: '/access_codes/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list access codes. */ customer_key?: string | undefined; /** ID of the device for which you want to list access codes. */ device_id?: string | undefined; /** IDs of the access codes that you want to retrieve. */ access_code_ids?: string[] | undefined; /** ID of the access method for which you want to list access codes. */ access_method_id?: string | undefined; /** ID of the access grant for which you want to list access codes. */ access_grant_id?: string | undefined; /** Key of the access grant for which you want to list access codes. */ access_grant_key?: string | undefined; /** Your user ID for the user by which to filter access codes. */ user_identifier_key?: string | undefined; /** Numerical limit on the number of access codes to return. */ limit?: number; /** 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`. */ search?: string | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { access_codes: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Unique identifier for a group of access codes that share the same code. */ common_code_key: string | null; /** Indicates whether the code is set on the device according to a preconfigured schedule. */ is_scheduled_on_device?: boolean | undefined; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Indicates whether the access code is waiting for a code assignment. */ is_waiting_for_code_assignment?: boolean | undefined; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates whether Seam manages the access code. */ is_managed: true; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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). * @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`.*/ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; /** 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`. */ display_status: string; /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */ is_backup_access_code_available: boolean; /** Indicates whether the access code is a backup code. */ is_backup?: boolean | undefined; /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */ pulled_backup_access_code_id?: (string | null) | undefined; /** Indicates whether changes to the access code from external sources are permitted. */ is_external_modification_allowed: boolean; /** Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use. */ is_one_time_use: boolean; /** 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. */ is_offline_access_code: boolean; /** Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; /** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of setting an access code on the device. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */ mutation_code: 'deferring_creation'; /** Date and time at which Seam will attempt to program this access code on the device. */ scheduled_at: string; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of removing an access code from the device. */ mutation_code: 'deleting'; /** 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. */ is_code_usable: boolean; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */ mutation_code: 'updating_code'; /** Previous code configuration. */ from: { /** Previous PIN code. */ code: string | null; }; /** New code configuration. */ to: { /** New PIN code. */ code: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */ mutation_code: 'updating_name'; /** Previous name configuration. */ from: { /** Previous access code name. */ name: string | null; }; /** New name configuration. */ to: { /** New access code name. */ name: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */ mutation_code: 'updating_time_frame'; /** Previous time frame configuration. */ from: { /** Previous start time for the access code. */ starts_at: string | null; /** Previous end time for the access code. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time for the access code. */ starts_at: string | null; /** New end time for the access code. */ ends_at: string | null; }; })[]; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/access_codes/pull_backup_access_code': { route: '/access_codes/pull_backup_access_code'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the access code for which you want to pull a backup access code. */ access_code_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** Represents a smart lock [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). An 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. Seam 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. In 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. For 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. */ backup_access_code: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Unique identifier for a group of access codes that share the same code. */ common_code_key: string | null; /** Indicates whether the code is set on the device according to a preconfigured schedule. */ is_scheduled_on_device?: boolean | undefined; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Indicates whether the access code is waiting for a code assignment. */ is_waiting_for_code_assignment?: boolean | undefined; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates whether Seam manages the access code. */ is_managed: true; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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). * @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`.*/ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; /** 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`. */ display_status: string; /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */ is_backup_access_code_available: boolean; /** Indicates whether the access code is a backup code. */ is_backup?: boolean | undefined; /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */ pulled_backup_access_code_id?: (string | null) | undefined; /** Indicates whether changes to the access code from external sources are permitted. */ is_external_modification_allowed: boolean; /** Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use. */ is_one_time_use: boolean; /** 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. */ is_offline_access_code: boolean; /** Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; /** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of setting an access code on the device. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */ mutation_code: 'deferring_creation'; /** Date and time at which Seam will attempt to program this access code on the device. */ scheduled_at: string; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of removing an access code from the device. */ mutation_code: 'deleting'; /** 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. */ is_code_usable: boolean; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */ mutation_code: 'updating_code'; /** Previous code configuration. */ from: { /** Previous PIN code. */ code: string | null; }; /** New code configuration. */ to: { /** New PIN code. */ code: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */ mutation_code: 'updating_name'; /** Previous name configuration. */ from: { /** Previous access code name. */ name: string | null; }; /** New name configuration. */ to: { /** New access code name. */ name: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */ mutation_code: 'updating_time_frame'; /** Previous time frame configuration. */ from: { /** Previous start time for the access code. */ starts_at: string | null; /** Previous end time for the access code. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time for the access code. */ starts_at: string | null; /** New end time for the access code. */ ends_at: string | null; }; })[]; }; /** Represents a smart lock [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). An 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. Seam 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. In 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. For 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. */ access_code: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Unique identifier for a group of access codes that share the same code. */ common_code_key: string | null; /** Indicates whether the code is set on the device according to a preconfigured schedule. */ is_scheduled_on_device?: boolean | undefined; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Indicates whether the access code is waiting for a code assignment. */ is_waiting_for_code_assignment?: boolean | undefined; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates whether Seam manages the access code. */ is_managed: true; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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). * @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`.*/ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; /** 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`. */ display_status: string; /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */ is_backup_access_code_available: boolean; /** Indicates whether the access code is a backup code. */ is_backup?: boolean | undefined; /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */ pulled_backup_access_code_id?: (string | null) | undefined; /** Indicates whether changes to the access code from external sources are permitted. */ is_external_modification_allowed: boolean; /** Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use. */ is_one_time_use: boolean; /** 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. */ is_offline_access_code: boolean; /** Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; /** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of setting an access code on the device. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */ mutation_code: 'deferring_creation'; /** Date and time at which Seam will attempt to program this access code on the device. */ scheduled_at: string; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of removing an access code from the device. */ mutation_code: 'deleting'; /** 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. */ is_code_usable: boolean; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */ mutation_code: 'updating_code'; /** Previous code configuration. */ from: { /** Previous PIN code. */ code: string | null; }; /** New code configuration. */ to: { /** New PIN code. */ code: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */ mutation_code: 'updating_name'; /** Previous name configuration. */ from: { /** Previous access code name. */ name: string | null; }; /** New name configuration. */ to: { /** New access code name. */ name: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */ mutation_code: 'updating_time_frame'; /** Previous time frame configuration. */ from: { /** Previous start time for the access code. */ starts_at: string | null; /** Previous end time for the access code. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time for the access code. */ starts_at: string | null; /** New end time for the access code. */ ends_at: string | null; }; })[]; }; }; maxDuration: undefined; }; '/access_codes/report_device_constraints': { route: '/access_codes/report_device_constraints'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for which you want to report constraints. */ device_id: string; /** 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`. */ supported_code_lengths?: number[] | undefined; /** 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`. */ min_code_length?: number | undefined; /** 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`. */ max_code_length?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_codes/simulate/create_unmanaged_access_code': { route: '/access_codes/simulate/create_unmanaged_access_code'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for which you want to simulate the creation of an unmanaged access code. */ device_id: string; /** Name of the simulated unmanaged access code. */ name: string; /** Code of the simulated unmanaged access code. */ code: string; }; commonParams: {}; formData: {}; jsonResponse: { /** Represents an [unmanaged smart lock access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes). An 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. When 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. Prior 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. Not all providers support unmanaged access codes. The following providers do not support unmanaged access codes: - [Kwikset](https://www.seam.co/docs/device-and-system-integration-guides/kwikset-locks) */ access_code: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates that Seam does not manage the access code. */ is_managed: false; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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. * @deprecated Use `display_status` to show a person the code's state.*/ status: 'set' | 'unset'; /** 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. */ display_status: string; /** 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. */ cannot_be_managed?: true | undefined; /** 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. */ cannot_delete_unmanaged_access_code?: true | undefined; /** Metadata for a dormakaba Oracode unmanaged access code. Only present for unmanaged access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; }; }; maxDuration: undefined; }; '/access_codes/unmanaged/convert_to_managed': { route: '/access_codes/unmanaged/convert_to_managed'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** ID of the unmanaged access code that you want to convert to a managed access code. */ access_code_id: string; /** Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the access code is allowed. */ is_external_modification_allowed?: boolean | undefined; /** Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the access code is allowed. */ allow_external_modification?: boolean | undefined; /** 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`. */ force?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_codes/unmanaged/delete': { route: '/access_codes/unmanaged/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the unmanaged access code that you want to delete. */ access_code_id: string; }; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/access_codes/unmanaged/get': { route: '/access_codes/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** 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`. */ device_id?: string | undefined; /** ID of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`. */ access_code_id?: string | undefined; /** Code of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`. */ code?: string | undefined; }; formData: {}; jsonResponse: { /** Represents an [unmanaged smart lock access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes). An 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. When 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. Prior 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. Not all providers support unmanaged access codes. The following providers do not support unmanaged access codes: - [Kwikset](https://www.seam.co/docs/device-and-system-integration-guides/kwikset-locks) */ access_code: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates that Seam does not manage the access code. */ is_managed: false; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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. * @deprecated Use `display_status` to show a person the code's state.*/ status: 'set' | 'unset'; /** 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. */ display_status: string; /** 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. */ cannot_be_managed?: true | undefined; /** 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. */ cannot_delete_unmanaged_access_code?: true | undefined; /** Metadata for a dormakaba Oracode unmanaged access code. Only present for unmanaged access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; }; }; maxDuration: undefined; }; '/access_codes/unmanaged/list': { route: '/access_codes/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the device for which you want to list unmanaged access codes. */ device_id: string; /** Your user ID for the user by which to filter unmanaged access codes. */ user_identifier_key?: string | undefined; /** Numerical limit on the number of unmanaged access codes to return. */ limit?: number; /** 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`. */ search?: string | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { access_codes: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates that Seam does not manage the access code. */ is_managed: false; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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. * @deprecated Use `display_status` to show a person the code's state.*/ status: 'set' | 'unset'; /** 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. */ display_status: string; /** 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. */ cannot_be_managed?: true | undefined; /** 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. */ cannot_delete_unmanaged_access_code?: true | undefined; /** Metadata for a dormakaba Oracode unmanaged access code. Only present for unmanaged access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/access_codes/unmanaged/update': { route: '/access_codes/unmanaged/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the unmanaged access code that you want to update. */ access_code_id: string; is_managed: boolean; /** Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. */ allow_external_modification?: boolean | undefined; /** Indicates whether [external modification](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes#external-modification) of the code is allowed. */ is_external_modification_allowed?: boolean | undefined; /** Indicates whether to force the unmanaged access code update. */ force?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_codes/update': { route: '/access_codes/update'; method: 'POST' | 'PATCH' | 'PUT'; queryParams: {}; jsonBody: { /** Name of the new 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). */ name?: string | undefined; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Code to be used for access. */ code?: string | undefined; attempt_for_offline_device?: boolean; /** 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`. */ allow_external_modification?: boolean | undefined; /** 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`. */ is_external_modification_allowed?: boolean | undefined; /** ID of the access code that you want to update. */ access_code_id: string; /** ID of the device containing the access code that you want to update. */ device_id?: string | undefined; /** 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). */ type?: ('ongoing' | 'time_bound') | undefined; /** 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`. */ is_managed?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/access_codes/update_multiple': { route: '/access_codes/update_multiple'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** 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`. */ ends_at?: string | undefined; /** 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. */ starts_at?: string | undefined; /** Name of the new 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). */ name?: string | undefined; /** Key that links the group of access codes, assigned on creation by `/access_codes/create_multiple`. */ common_code_key: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_grants/create': { route: '/access_grants/create'; method: 'POST'; queryParams: {}; jsonBody: ({ /** ID of user identity for whom access is being granted. */ user_identity_id: string; } | { /** When used, creates a new user identity with the given details, and grants them access. */ user_identity: { /** Unique email address for the user identity. */ email_address?: (string | null) | undefined; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number?: (string | null) | undefined; /** Full name of the user associated with the user identity. */ full_name?: (string | null) | undefined; /** Unique key for the user identity. */ user_identity_key?: (string | null) | undefined; }; }) & { /** Name for the access grant. */ name?: (string | undefined) | null; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** * @deprecated Use `space_ids`.*/ location_ids?: string[] | undefined; /** Set of IDs of existing spaces to which access is being granted. */ space_ids?: string[] | undefined; /** Set of keys of existing spaces to which access is being granted. */ space_keys?: string[] | undefined; /** * @deprecated Create a space first, then reference it using `space_ids`.*/ location?: { /** Name of the location. */ name?: string | undefined; /** * @deprecated Use `acs_entrance_ids` at the top level.*/ acs_entrance_ids?: string[]; /** * @deprecated Use `device_ids` at the top level.*/ device_ids?: string[]; } | undefined; /** Set of IDs of the [entrances](https://www.seam.co/docs/api/acs/systems/list) to which access is being granted. */ acs_entrance_ids?: string[]; /** Set of IDs of the [devices](https://www.seam.co/docs/api/devices/list) to which access is being granted. */ device_ids?: string[]; requested_access_methods: { /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; }[]; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: (string | undefined) | null; /** ID of the customization profile to apply to the Access Grant and its access methods. */ customization_profile_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ access_grant: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }; }; maxDuration: undefined; }; '/access_grants/delete': { route: '/access_grants/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of Access Grant to delete. */ access_grant_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_grants/get': { route: '/access_grants/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of Access Grant to get. */ access_grant_id: string; } | { /** Unique key of Access Grant to get. */ access_grant_key: string; }; formData: {}; jsonResponse: { /** 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. */ access_grant: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }; }; maxDuration: undefined; }; '/access_grants/get_related': { route: '/access_grants/get_related'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** IDs of the access grants that you want to get along with their related resources. */ access_grant_ids?: string[] | undefined; /** Keys of the access grants that you want to get along with their related resources. */ access_grant_keys?: string[] | undefined; include?: ('spaces' | 'devices' | 'acs_entrances' | 'connected_accounts' | 'acs_systems' | 'user_identities' | 'acs_access_groups' | 'access_methods')[] | undefined; exclude?: ('spaces' | 'devices' | 'acs_entrances' | 'connected_accounts' | 'acs_systems' | 'user_identities' | 'acs_access_groups' | 'access_methods')[] | undefined; }; formData: {}; jsonResponse: { /** A batch of workspace resources. */ batch: { spaces?: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }[] | undefined; devices?: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[] | undefined; acs_entrances?: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[] | undefined; connected_accounts?: { /** ID of the connected account. */ connected_account_id: string; /** Date and time at which the connected account was created. */ created_at?: string | undefined; /** User identifier associated with the connected account. * @deprecated Use `display_name` instead.*/ user_identifier?: { /** Username of the user identifier associated with the connected account. */ username?: string | undefined; /** API URL for the user identifier associated with the connected account. */ api_url?: string | undefined; /** Email address of the user identifier associated with the connected account. */ email?: string | undefined; /** Phone number of the user identifier associated with the connected account. */ phone?: string | undefined; /** Indicates whether the user identifier associated with the connected account is exclusive. */ exclusive?: boolean | undefined; } | undefined; /** Type of connected account. */ account_type?: string | undefined; /** Display name for the connected account type. */ account_type_display_name: string; /** Logo URL for the connected account provider. */ image_url?: string | undefined; /** Display name for the connected account. */ display_name: string; /** Errors associated with the connected account. */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Salto KS metadata associated with the connected account that has an error. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has an error. */ sites?: ({ /** ID of a Salto site associated with the connected account that has an error. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has an error. */ site_name?: (string | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */ subscribed_site_user_count?: (number | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */ site_user_subscription_limit?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; })[]; /** Warnings associated with the connected account. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_connected_account'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; /** Salto KS metadata associated with the connected account that has a warning. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has a warning. */ sites?: ({ /** ID of a Salto site associated with the connected account that has a warning. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has a warning. */ site_name?: (string | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has a warning. */ site_user_subscription_limit?: (number | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has a warning. */ subscribed_site_user_count?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'account_reauthorization_requested'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_service_unavailable'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'dormakaba_sites_unapproved'; })[]; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** Your unique key for the customer associated with this connected account. */ customer_key?: string | undefined; /** List of capabilities that were accepted during the account connection process. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** 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. */ default_checkin_time?: string | undefined; /** Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration. */ default_checkout_time?: string | undefined; /** IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. */ time_zone?: string | undefined; /** 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. */ ical_feed_origin?: string | undefined; /** For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration. */ ical_url?: string | undefined; }[] | undefined; acs_systems?: { /** ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ default_credential_manager_acs_system_id?: (string | null) | undefined; /** ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_system_id: string; /** Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_user_count?: number | undefined; /** Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_access_group_count?: number | undefined; /** Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Indicates whether the `acs_system` is a credential manager. */ is_credential_manager: boolean; /** Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ visionline_metadata?: { /** Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset. */ mobile_access_uuid?: (string | undefined) | undefined; /** Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager. */ system_id?: (string | undefined) | undefined; /** 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. */ lan_address?: (string | undefined) | undefined; } | undefined; /** * @deprecated Use `external_type`.*/ system_type?: ('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') | undefined; /** * @deprecated Use `external_type_display_name`.*/ system_type_display_name?: string | undefined; /** Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ location: { /** Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located. */ time_zone: string | null; }; /** Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ name: string; /** Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ created_at: string; /** ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ workspace_id: string; /** 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). * @deprecated Use `connected_account_id`.*/ connected_account_ids: string[]; /** ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ connected_account_id: string; /** URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ image_url: string; /** Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image. */ image_alt_text: string; /** Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'seam_bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; /** Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'visionline_instance_unreachable'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'user_license_limit_reached'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_system_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_service_unavailable'; })[]; /** Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_custom_pins_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_does_not_match_location'; /** * @deprecated this field is deprecated.*/ misconfigured_acs_entrance_ids?: string[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_system'; })[]; }[] | undefined; user_identities?: { /** ID of the user identity. */ user_identity_id: string; /** Unique key for the user identity. */ user_identity_key: string | null; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }[] | undefined; acs_access_groups?: { /** ID of the access group. */ acs_access_group_id: string; /** ID of the access control system that contains the access group. */ acs_system_id: string; /** ID of the workspace that contains the access group. */ workspace_id: string; /** ID of the connected account that contains the access group. */ connected_account_id: string; /** Name of the access group. */ name: string; /** * @deprecated Use `external_type`.*/ access_group_type: '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'; /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string; /** Display name for the access group. */ display_name: string; /** Brand-specific terminology for the access group type. */ external_type: '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'; /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string; /** Date and time at which the access group was created. */ created_at: string; /** Errors associated with the `acs_access_group`. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_create_on_acs_system'; }[]; /** Warnings associated with the `acs_access_group`. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_access_group'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; })[]; /** `starts_at` and `ends_at` timestamps for the access group's access. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ mutation_code: 'deferring_deletion'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system. */ mutation_code: 'updating_group_information'; /** Old access group information. */ from: { /** Name of the access group. */ name?: (string | null) | undefined; }; /** New access group information. */ to: { /** Name of the access group. */ name?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system. */ mutation_code: 'updating_user_membership'; /** Old user membership. */ from: { /** Old user ID. */ acs_user_id: string | null; }; /** New user membership. */ to: { /** New user ID. */ acs_user_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system. */ mutation_code: 'updating_entrance_membership'; /** Old entrance membership. */ from: { /** Old entrance ID. */ acs_entrance_id: string | null; }; /** New entrance membership. */ to: { /** New entrance ID. */ acs_entrance_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled user membership change is pending for this access group. */ mutation_code: 'deferring_user_membership_update'; /** ID of the user involved in the scheduled change. */ acs_user_id: string; /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing'; })[]; /** Indicates whether Seam manages the access group. */ is_managed: true; }[] | undefined; access_methods?: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }[] | undefined; }; }; maxDuration: undefined; }; '/access_grants/list': { route: '/access_grants/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** IDs of the access grants to retrieve. */ access_grant_ids?: string[] | undefined; /** Customer key for which you want to list access grants. */ customer_key?: string | undefined; /** Numerical limit on the number of access grants to return. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; /** ID of user identity by which you want to filter the list of Access Grants. */ user_identity_id?: string | undefined; /** ID of the access system by which you want to filter the list of Access Grants. */ acs_system_id?: string | undefined; /** ID of the entrance by which you want to filter the list of Access Grants. */ acs_entrance_id?: string | undefined; /** ID of the device by which you want to filter the list of Access Grants. */ device_id?: string | undefined; /** * @deprecated Use `space_id`.*/ location_id?: string | undefined; /** ID of the space by which you want to filter the list of Access Grants. */ space_id?: string | undefined; /** ID of the access code by which you want to filter the list of Access Grants. */ access_code_id?: string | undefined; /** Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key. */ access_grant_key?: (string | null) | undefined; /** Filter Access Grants by reservation_key. */ reservation_key?: string | undefined; /** 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`. */ search?: string | undefined; }; formData: {}; jsonResponse: { access_grants: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/access_grants/request_access_methods': { route: '/access_grants/request_access_methods'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the Access Grant to add access methods to. */ access_grant_id: string; /** Array of requested access methods to add to the access grant. */ requested_access_methods: { /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; }[]; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ access_grant: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }; }; maxDuration: undefined; }; '/access_grants/unmanaged/get': { route: '/access_grants/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of unmanaged Access Grant to get. */ access_grant_id: string; }; formData: {}; jsonResponse: { /** Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys. */ access_grant: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; /** ID of user identity to which the Access Grant gives access. */ user_identity_id?: string | undefined; }; }; maxDuration: undefined; }; '/access_grants/unmanaged/list': { route: '/access_grants/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list unmanaged Access Grants. */ customer_key?: string | undefined; /** ID of user identity by which you want to filter the list of unmanaged Access Grants. */ user_identity_id?: string | undefined; /** ID of the access system by which you want to filter the list of unmanaged Access Grants. */ acs_system_id?: string | undefined; /** ID of the entrance by which you want to filter the list of unmanaged Access Grants. */ acs_entrance_id?: string | undefined; /** Filter unmanaged Access Grants by reservation_key. */ reservation_key?: string | undefined; /** Numerical limit on the number of unmanaged access grants to return. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { access_grants: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; /** ID of user identity to which the Access Grant gives access. */ user_identity_id?: string | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/access_grants/unmanaged/update': { route: '/access_grants/unmanaged/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the unmanaged Access Grant to update. */ access_grant_id: string; /** Must be set to true to convert the unmanaged access grant to managed. */ is_managed: true; /** Unique key for the access grant. If not provided, the existing key will be preserved. */ access_grant_key?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_grants/update': { route: '/access_grants/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** Display name for the access grant. */ name?: (string | null) | undefined; /** ID of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`. */ access_grant_id?: string | undefined; /** Key of the Access Grant to update. Provide either `access_grant_id` or `access_grant_key`. */ access_grant_key?: string | undefined; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: (string | null) | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_methods/assign_card': { route: '/access_methods/assign_card'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `access_method` to assign the credential to. */ access_method_id: string; /** Card number of the credential to assign. */ card_number: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/access_methods/delete': { route: '/access_methods/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of access method to delete. */ access_method_id: string; } | { /** ID of access grant whose access methods should be deleted. */ access_grant_id: string; } | { /** Reservation key of the access grant whose access methods should be deleted. */ reservation_key: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/access_methods/encode': { route: '/access_methods/encode'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `acs_encoder` to use to encode the `access_method`. */ acs_encoder_id: string; /** ID of the `access_method` to encode onto a card. */ access_method_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/access_methods/get': { route: '/access_methods/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of access method to get. */ access_method_id: string; }; formData: {}; jsonResponse: { /** 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. */ access_method: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; }; maxDuration: undefined; }; '/access_methods/get_related': { route: '/access_methods/get_related'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** IDs of the access methods that you want to get along with their related resources. */ access_method_ids: string[]; include?: ('spaces' | 'devices' | 'acs_entrances' | 'access_grants' | 'access_methods' | 'instant_keys' | 'client_sessions' | 'acs_credentials')[] | undefined; exclude?: ('spaces' | 'devices' | 'acs_entrances' | 'access_grants' | 'access_methods' | 'instant_keys' | 'client_sessions' | 'acs_credentials')[] | undefined; }; formData: {}; jsonResponse: { /** A batch of workspace resources. */ batch: { spaces?: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }[] | undefined; devices?: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[] | undefined; acs_entrances?: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[] | undefined; access_grants?: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }[] | undefined; access_methods?: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }[] | undefined; instant_keys?: { /** ID of the Instant Key. */ instant_key_id: string; /** ID of the workspace that contains the Instant Key. */ workspace_id: string; /** Date and time at which the Instant Key was created. */ created_at: string; /** 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. */ instant_key_url: string; /** ID of the client session associated with the Instant Key. */ client_session_id: string; /** ID of the user identity associated with the Instant Key. */ user_identity_id: string; /** Date and time at which the Instant Key expires. */ expires_at: string; /** ID of the customization profile associated with the Instant Key. */ customization_profile_id?: string | undefined; /** Customization applied to the Instant Key UI. */ customization?: { /** Primary color used in the Instant Key UI. */ primary_color?: string | undefined; /** Secondary color used in the Instant Key UI. */ secondary_color?: string | undefined; /** URL of the logo displayed on the Instant Key. */ logo_url?: string | undefined; /** 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. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; } | undefined; }[] | undefined; client_sessions?: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }[] | undefined; acs_credentials?: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }[] | undefined; }; }; maxDuration: undefined; }; '/access_methods/list': { route: '/access_methods/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list access methods. */ customer_key?: string | undefined; /** ID of Access Grant to list access methods for. */ access_grant_id?: string | undefined; /** Key of Access Grant to list access methods for. */ access_grant_key?: string | undefined; /** 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`. */ device_id?: string | undefined; /** ID of the entrance for which you want to retrieve all access methods that grant access to it. */ acs_entrance_id?: string | undefined; /** 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`. */ space_id?: string | undefined; /** 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`. */ access_code_id?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { access_methods: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/access_methods/unlock_door': { route: '/access_methods/unlock_door'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the cloud_key `access_method` to use for the unlock operation. */ access_method_id: string; /** ID of the entrance to unlock. */ acs_entrance_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/access_methods/unmanaged/get': { route: '/access_methods/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of unmanaged access method to get. */ access_method_id: string; }; formData: {}; jsonResponse: { /** Represents an unmanaged access method. Unmanaged access methods do not have client sessions, instant keys, customization profiles, or keys. */ access_method: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; }; }; maxDuration: undefined; }; '/access_methods/unmanaged/list': { route: '/access_methods/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of Access Grant to list unmanaged access methods for. */ access_grant_id: string; /** ID of the device for which you want to retrieve all unmanaged access methods. */ device_id?: string | undefined; /** ID of the entrance for which you want to retrieve all unmanaged access methods. */ acs_entrance_id?: string | undefined; /** ID of the space for which you want to retrieve all unmanaged access methods. */ space_id?: string | undefined; }; formData: {}; jsonResponse: { access_methods: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; }[]; }; maxDuration: undefined; }; '/acs/access_groups/add_user': { route: '/acs/access_groups/add_user'; method: 'PUT' | 'POST'; queryParams: {}; jsonBody: { /** ID of the access group to which you want to add an access system user. */ acs_access_group_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/access_groups/delete': { route: '/acs/access_groups/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access group that you want to delete. */ acs_access_group_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/access_groups/get': { route: '/acs/access_groups/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access group that you want to get. */ acs_access_group_id: string; }; formData: {}; jsonResponse: { /** 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. Some 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. To 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). */ acs_access_group: { /** ID of the access group. */ acs_access_group_id: string; /** ID of the access control system that contains the access group. */ acs_system_id: string; /** ID of the workspace that contains the access group. */ workspace_id: string; /** ID of the connected account that contains the access group. */ connected_account_id: string; /** Name of the access group. */ name: string; /** * @deprecated Use `external_type`.*/ access_group_type: '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'; /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string; /** Display name for the access group. */ display_name: string; /** Brand-specific terminology for the access group type. */ external_type: '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'; /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string; /** Date and time at which the access group was created. */ created_at: string; /** Errors associated with the `acs_access_group`. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_create_on_acs_system'; }[]; /** Warnings associated with the `acs_access_group`. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_access_group'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; })[]; /** `starts_at` and `ends_at` timestamps for the access group's access. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ mutation_code: 'deferring_deletion'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system. */ mutation_code: 'updating_group_information'; /** Old access group information. */ from: { /** Name of the access group. */ name?: (string | null) | undefined; }; /** New access group information. */ to: { /** Name of the access group. */ name?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system. */ mutation_code: 'updating_user_membership'; /** Old user membership. */ from: { /** Old user ID. */ acs_user_id: string | null; }; /** New user membership. */ to: { /** New user ID. */ acs_user_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system. */ mutation_code: 'updating_entrance_membership'; /** Old entrance membership. */ from: { /** Old entrance ID. */ acs_entrance_id: string | null; }; /** New entrance membership. */ to: { /** New entrance ID. */ acs_entrance_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled user membership change is pending for this access group. */ mutation_code: 'deferring_user_membership_update'; /** ID of the user involved in the scheduled change. */ acs_user_id: string; /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing'; })[]; /** Indicates whether Seam manages the access group. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/access_groups/list': { route: '/acs/access_groups/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system for which you want to retrieve all access groups. */ acs_system_id?: string | undefined; /** ID of the access system user for which you want to retrieve all access groups. */ acs_user_id?: string | undefined; /** ID of the user identity for which you want to retrieve all access groups. */ user_identity_id?: string | undefined; /** 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`. */ search?: string | undefined; }; formData: {}; jsonResponse: { acs_access_groups: { /** ID of the access group. */ acs_access_group_id: string; /** ID of the access control system that contains the access group. */ acs_system_id: string; /** ID of the workspace that contains the access group. */ workspace_id: string; /** ID of the connected account that contains the access group. */ connected_account_id: string; /** Name of the access group. */ name: string; /** * @deprecated Use `external_type`.*/ access_group_type: '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'; /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string; /** Display name for the access group. */ display_name: string; /** Brand-specific terminology for the access group type. */ external_type: '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'; /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string; /** Date and time at which the access group was created. */ created_at: string; /** Errors associated with the `acs_access_group`. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_create_on_acs_system'; }[]; /** Warnings associated with the `acs_access_group`. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_access_group'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; })[]; /** `starts_at` and `ends_at` timestamps for the access group's access. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ mutation_code: 'deferring_deletion'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system. */ mutation_code: 'updating_group_information'; /** Old access group information. */ from: { /** Name of the access group. */ name?: (string | null) | undefined; }; /** New access group information. */ to: { /** Name of the access group. */ name?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system. */ mutation_code: 'updating_user_membership'; /** Old user membership. */ from: { /** Old user ID. */ acs_user_id: string | null; }; /** New user membership. */ to: { /** New user ID. */ acs_user_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system. */ mutation_code: 'updating_entrance_membership'; /** Old entrance membership. */ from: { /** Old entrance ID. */ acs_entrance_id: string | null; }; /** New entrance membership. */ to: { /** New entrance ID. */ acs_entrance_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled user membership change is pending for this access group. */ mutation_code: 'deferring_user_membership_update'; /** ID of the user involved in the scheduled change. */ acs_user_id: string; /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing'; })[]; /** Indicates whether Seam manages the access group. */ is_managed: true; }[]; }; maxDuration: undefined; }; '/acs/access_groups/list_accessible_entrances': { route: '/acs/access_groups/list_accessible_entrances'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access group for which you want to retrieve all accessible entrances. */ acs_access_group_id: string; }; formData: {}; jsonResponse: { acs_entrances: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/acs/access_groups/list_users': { route: '/acs/access_groups/list_users'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access group for which you want to retrieve all access system users. */ acs_access_group_id: string; }; formData: {}; jsonResponse: { acs_users: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Indicates whether Seam manages the access system user. */ is_managed: true; }[]; }; maxDuration: undefined; }; '/acs/access_groups/remove_user': { route: '/acs/access_groups/remove_user'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access group from which you want to remove an access system user. */ acs_access_group_id: string; /** ID of the access system user that you want to remove from an access group. */ acs_user_id?: string | undefined; /** ID of the user identity associated with the user that you want to remove from an access group. */ user_identity_id?: string | undefined; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/access_groups/unmanaged/get': { route: '/acs/access_groups/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the unmanaged access group that you want to get. */ acs_access_group_id: string; }; formData: {}; jsonResponse: { /** */ acs_access_group: { /** ID of the access group. */ acs_access_group_id: string; /** ID of the access control system that contains the access group. */ acs_system_id: string; /** ID of the workspace that contains the access group. */ workspace_id: string; /** ID of the connected account that contains the access group. */ connected_account_id: string; /** Name of the access group. */ name: string; /** * @deprecated Use `external_type`.*/ access_group_type: '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'; /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string; /** Display name for the access group. */ display_name: string; /** Brand-specific terminology for the access group type. */ external_type: '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'; /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string; /** Date and time at which the access group was created. */ created_at: string; /** Errors associated with the `acs_access_group`. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_create_on_acs_system'; }[]; /** Warnings associated with the `acs_access_group`. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_access_group'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; })[]; /** `starts_at` and `ends_at` timestamps for the access group's access. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ mutation_code: 'deferring_deletion'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system. */ mutation_code: 'updating_group_information'; /** Old access group information. */ from: { /** Name of the access group. */ name?: (string | null) | undefined; }; /** New access group information. */ to: { /** Name of the access group. */ name?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system. */ mutation_code: 'updating_user_membership'; /** Old user membership. */ from: { /** Old user ID. */ acs_user_id: string | null; }; /** New user membership. */ to: { /** New user ID. */ acs_user_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system. */ mutation_code: 'updating_entrance_membership'; /** Old entrance membership. */ from: { /** Old entrance ID. */ acs_entrance_id: string | null; }; /** New entrance membership. */ to: { /** New entrance ID. */ acs_entrance_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled user membership change is pending for this access group. */ mutation_code: 'deferring_user_membership_update'; /** ID of the user involved in the scheduled change. */ acs_user_id: string; /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing'; })[]; is_managed: false; }; }; maxDuration: undefined; }; '/acs/access_groups/unmanaged/list': { route: '/acs/access_groups/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system for which you want to retrieve all unmanaged access groups. */ acs_system_id?: string | undefined; /** ID of the access system user for which you want to retrieve all unmanaged access groups. */ acs_user_id?: string | undefined; /** 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`. */ search?: string | undefined; }; formData: {}; jsonResponse: { acs_access_groups: { /** ID of the access group. */ acs_access_group_id: string; /** ID of the access control system that contains the access group. */ acs_system_id: string; /** ID of the workspace that contains the access group. */ workspace_id: string; /** ID of the connected account that contains the access group. */ connected_account_id: string; /** Name of the access group. */ name: string; /** * @deprecated Use `external_type`.*/ access_group_type: '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'; /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string; /** Display name for the access group. */ display_name: string; /** Brand-specific terminology for the access group type. */ external_type: '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'; /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string; /** Date and time at which the access group was created. */ created_at: string; /** Errors associated with the `acs_access_group`. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_create_on_acs_system'; }[]; /** Warnings associated with the `acs_access_group`. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_access_group'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; })[]; /** `starts_at` and `ends_at` timestamps for the access group's access. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ mutation_code: 'deferring_deletion'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system. */ mutation_code: 'updating_group_information'; /** Old access group information. */ from: { /** Name of the access group. */ name?: (string | null) | undefined; }; /** New access group information. */ to: { /** Name of the access group. */ name?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system. */ mutation_code: 'updating_user_membership'; /** Old user membership. */ from: { /** Old user ID. */ acs_user_id: string | null; }; /** New user membership. */ to: { /** New user ID. */ acs_user_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system. */ mutation_code: 'updating_entrance_membership'; /** Old entrance membership. */ from: { /** Old entrance ID. */ acs_entrance_id: string | null; }; /** New entrance membership. */ to: { /** New entrance ID. */ acs_entrance_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled user membership change is pending for this access group. */ mutation_code: 'deferring_user_membership_update'; /** ID of the user involved in the scheduled change. */ acs_user_id: string; /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing'; })[]; is_managed: false; }[]; }; maxDuration: undefined; }; '/acs/credential_pools/list': { route: '/acs/credential_pools/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system for which you want to list credential pools. */ acs_system_id: string; }; formData: {}; jsonResponse: { acs_credential_pools: { acs_credential_pool_id: string; acs_system_id: string; display_name: string; external_type: 'hid_part_number'; external_type_display_name: string; created_at: string; workspace_id: string; }[]; }; maxDuration: undefined; }; '/acs/credential_provisioning_automations/launch': { route: '/acs/credential_provisioning_automations/launch'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the user identity for which you want to launch a credential provisioning automation. */ user_identity_id: string; /** Access system ID of the credential manager for which you want to launch a credential provisioning automation. */ credential_manager_acs_system_id: string; /** ID of the credential pool for which you want to launch a credential provisioning automation. */ acs_credential_pool_id?: string | undefined; /** 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`. */ create_credential_manager_user?: boolean | undefined; /** 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`. */ credential_manager_acs_user_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** * @deprecated Not used.*/ acs_credential_provisioning_automation: { acs_credential_provisioning_automation_id: string; credential_manager_acs_system_id: string; user_identity_id: string; created_at: string; workspace_id: string; }; }; maxDuration: undefined; }; '/acs/credentials/assign': { route: '/acs/credentials/assign'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** ID of the credential that you want to assign to an access system user. */ acs_credential_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). An 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. For each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type. For 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. */ acs_credential: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/credentials/create': { route: '/acs/credentials/create'; method: 'POST'; queryParams: {}; jsonBody: { /** ACS system ID of the credential manager for the new credential. */ credential_manager_acs_system_id?: string | undefined; /** 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`. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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`. */ acs_system_id?: string | undefined; /** Access method for the new credential. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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). */ code?: string | undefined; /** 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). */ is_multi_phone_sync_credential?: boolean; /** 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. */ allowed_acs_entrance_ids?: string[]; /** Visionline-specific metadata for the new credential. */ visionline_metadata?: { /** * @deprecated Read-only endpoint references moved to `endpoint`.*/ assa_abloy_credential_service_mobile_endpoint_id?: string | undefined; card_format?: ('TLCode' | 'rfid48') | undefined; card_function_type?: 'guest' | 'staff'; /** * @deprecated Use `override` instead.*/ is_override_key?: boolean | undefined; override?: boolean | undefined; auto_join?: boolean | undefined; joiner_acs_credential_ids?: string[] | undefined; } | undefined; /** Vostio-specific metadata for the new credential. */ assa_abloy_vostio_metadata?: { auto_join?: boolean | undefined; override_all_guest_acs_entrances?: boolean | undefined; join_all_guest_acs_entrances?: boolean | undefined; override_guest_acs_entrance_ids?: string[] | undefined; } | undefined; /** */ hotek_metadata?: { override?: boolean | undefined; auto_join?: boolean | undefined; } | undefined; /** Salto Space-specific metadata for the new credential. */ salto_space_metadata?: { /** 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). */ assign_new_key?: boolean | undefined; /** 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). */ update_current_key?: boolean | undefined; } | undefined; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). An 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. For each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type. For 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. */ acs_credential: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/credentials/create_offline_code': { route: '/acs/credentials/create_offline_code'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the access system user to whom the new credential belongs. */ acs_user_id: string; /** 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. */ allowed_acs_entrance_id: string; /** Indicates whether the code is one-time-use or reusable. */ is_one_time_use?: boolean; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). An 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. For each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type. For 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. */ acs_credential: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/credentials/delete': { route: '/acs/credentials/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the credential that you want to delete. */ acs_credential_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/credentials/get': { route: '/acs/credentials/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the credential that you want to get. */ acs_credential_id: string; }; formData: {}; jsonResponse: { /** 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). An 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. For each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type. For 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. */ acs_credential: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/credentials/list': { route: '/acs/credentials/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system user for which you want to retrieve all credentials. */ acs_user_id?: string | undefined; /** ID of the access system for which you want to retrieve all credentials. */ acs_system_id?: string | undefined; /** ID of the user identity for which you want to retrieve all credentials. */ user_identity_id?: string | undefined; /** Number of credentials to return. */ limit?: number; /** 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. */ created_before?: Date | undefined; /** Indicates whether you want to retrieve only multi-phone sync credentials or non-multi-phone sync credentials. */ is_multi_phone_sync_credential?: boolean | undefined; /** 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`. */ search?: string | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { acs_credentials: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/acs/credentials/list_accessible_entrances': { route: '/acs/credentials/list_accessible_entrances'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the credential for which you want to retrieve all entrances to which the credential grants access. */ acs_credential_id: string; }; formData: {}; jsonResponse: { acs_entrances: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/acs/credentials/unassign': { route: '/acs/credentials/unassign'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** ID of the credential that you want to unassign from an access system user. */ acs_credential_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). An 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. For each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type. For 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. */ acs_credential: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/credentials/unmanaged/get': { route: '/acs/credentials/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the unmanaged credential that you want to get. */ acs_credential_id: string; }; formData: {}; jsonResponse: { /** 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. */ acs_credential: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; }; maxDuration: undefined; }; '/acs/credentials/unmanaged/list': { route: '/acs/credentials/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system user for which you want to retrieve all credentials. */ acs_user_id?: string | undefined; /** ID of the access system for which you want to retrieve all credentials. */ acs_system_id?: string | undefined; /** ID of the user identity for which you want to retrieve all credentials. */ user_identity_id?: string | undefined; /** 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`. */ search?: string | undefined; }; formData: {}; jsonResponse: { acs_credentials: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }[]; }; maxDuration: undefined; }; '/acs/credentials/update': { route: '/acs/credentials/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the credential that you want to update. */ acs_credential_id: string; /** Replacement access (PIN) code for the credential that you want to update. */ code?: string | undefined; /** 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. */ ends_at?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). An 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. For each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type. For 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. */ acs_credential: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/encoders/encode_credential': { route: '/acs/encoders/encode_credential'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `acs_encoder` to use to encode the `acs_credential`. */ acs_encoder_id: string; /** ID of the `acs_credential` to encode onto a card. */ acs_credential_id?: string | undefined; /** ID of the `access_method` to encode onto a card. */ access_method_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/acs/encoders/get': { route: '/acs/encoders/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the encoder that you want to get. */ acs_encoder_id: string; }; formData: {}; jsonResponse: { /** 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). Some access control systems require credentials to be encoded onto plastic key cards using a card encoder. This process involves the following two key steps: 1. Credential creation Configure the access parameters for the credential. 2. Card encoding Write the credential data onto the card using a compatible card encoder. Separately, 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. See [Working with Card Encoders and Scanners](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). To 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). */ acs_encoder: { /** ID of the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ acs_encoder_id: string; /** 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). */ acs_system_id: string; /** 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). */ connected_account_id: string; /** ID of the workspace that contains the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ workspace_id: string; /** Errors associated with the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_encoder_removed'; }[]; /** 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. */ created_at: string; /** Display name for the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ display_name: string; }; }; maxDuration: undefined; }; '/acs/encoders/list': { route: '/acs/encoders/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system for which you want to retrieve all encoders. */ acs_system_id?: string | undefined; /** IDs of the access systems for which you want to retrieve all encoders. */ acs_system_ids?: string[] | undefined; /** IDs of the encoders that you want to retrieve. */ acs_encoder_ids?: string[] | undefined; /** Number of encoders to return. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { acs_encoders: { /** ID of the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ acs_encoder_id: string; /** 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). */ acs_system_id: string; /** 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). */ connected_account_id: string; /** ID of the workspace that contains the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ workspace_id: string; /** Errors associated with the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_encoder_removed'; }[]; /** 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. */ created_at: string; /** Display name for the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ display_name: string; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/acs/encoders/scan_credential': { route: '/acs/encoders/scan_credential'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the encoder to use for the scan. */ acs_encoder_id: string; /** Salto KS-specific metadata for the scan action. */ salto_ks_metadata?: { /** 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. */ detect_new_tags?: boolean; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/acs/encoders/scan_to_assign_credential': { route: '/acs/encoders/scan_to_assign_credential'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `acs_encoder` to use to scan the credential. */ acs_encoder_id: string; /** ID of the `acs_user` to assign the scanned credential to. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** Salto KS-specific metadata for the scan action. */ salto_ks_metadata?: { /** 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. */ detect_new_tags?: boolean; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/acs/encoders/simulate/next_credential_encode_will_fail': { route: '/acs/encoders/simulate/next_credential_encode_will_fail'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */ acs_encoder_id: string; /** Code of the error to simulate. */ error_code?: 'no_credential_on_encoder' | 'encoding_interrupted'; } | { /** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */ acs_encoder_id: string; /** Code of the error to simulate. */ error_code: 'uncategorized_error' | 'action_attempt_expired'; /** ID of the `acs_credential` that will fail to be encoded onto a card in the next request. */ acs_credential_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/encoders/simulate/next_credential_encode_will_succeed': { route: '/acs/encoders/simulate/next_credential_encode_will_succeed'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */ acs_encoder_id: string; /** Scenario to simulate. */ scenario?: 'credential_is_issued'; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/encoders/simulate/next_credential_scan_will_fail': { route: '/acs/encoders/simulate/next_credential_scan_will_fail'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request. */ acs_encoder_id: string; error_code?: 'no_credential_on_encoder'; } | { /** ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request. */ acs_encoder_id: string; error_code: 'uncategorized_error' | 'action_attempt_expired'; acs_credential_id_on_seam?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/encoders/simulate/next_credential_scan_will_succeed': { route: '/acs/encoders/simulate/next_credential_scan_will_succeed'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */ acs_encoder_id: string; /** Scenario to simulate. */ scenario?: 'credential_exists_on_seam' | 'credential_on_encoder_needs_update'; /** ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation. */ acs_credential_id_on_seam?: string | undefined; } | { /** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */ acs_encoder_id: string; /** Scenario to simulate. */ scenario: 'credential_does_not_exist_on_seam'; } | { /** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */ acs_encoder_id: string; /** Scenario to simulate. */ scenario: 'credential_on_encoder_is_empty'; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/entrances/get': { route: '/acs/entrances/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the entrance that you want to get. */ acs_entrance_id: string; }; formData: {}; jsonResponse: { /** 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). In 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. */ acs_entrance: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }; }; maxDuration: undefined; }; '/acs/entrances/grant_access': { route: '/acs/entrances/grant_access'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the entrance to which you want to grant an access system user access. */ acs_entrance_id: string; /** 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. */ user_identity_id?: string | undefined; /** 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. */ acs_user_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/entrances/list': { route: '/acs/entrances/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list entrances. */ customer_key?: string | undefined; /** ID of the access system for which you want to retrieve all entrances. */ acs_system_id?: string | undefined; /** ID of the credential for which you want to retrieve all entrances. */ acs_credential_id?: string | undefined; /** ID of the access method for which you want to retrieve all entrances to which it grants access. */ access_method_id?: string | undefined; /** * @deprecated Use `space_id`.*/ location_id?: (string | null) | undefined; /** ID of the space for which you want to list entrances. */ space_id?: string | undefined; /** ID of the connected account for which you want to retrieve all entrances. */ connected_account_id?: string | undefined; /** IDs of the entrances for which you want to retrieve all entrances. */ acs_entrance_ids?: string[] | undefined; /** String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`. */ search?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { acs_entrances: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/acs/entrances/list_credentials_with_access': { route: '/acs/entrances/list_credentials_with_access'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the entrance for which you want to list all credentials that grant access. */ acs_entrance_id: string; /** Conditions that credentials must meet to be included in the returned list. */ include_if?: 'visionline_metadata.is_valid'[] | undefined; }; formData: {}; jsonResponse: { acs_credentials: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }[]; }; maxDuration: undefined; }; '/acs/entrances/unlock': { route: '/acs/entrances/unlock'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the entrance to unlock. */ acs_entrance_id: string; /** ID of the cloud_key credential to use for the unlock operation. */ acs_credential_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/acs/systems/get': { route: '/acs/systems/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system that you want to get. */ acs_system_id: string; }; formData: {}; jsonResponse: { /** Represents an [access control system](https://www.seam.co/docs/low-level-apis/access-systems). Within 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. For details about the resources associated with an access control system, see the [access control systems namespace](https://www.seam.co/docs/api/acs/object). */ acs_system: { /** ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ default_credential_manager_acs_system_id?: (string | null) | undefined; /** ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_system_id: string; /** Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_user_count?: number | undefined; /** Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_access_group_count?: number | undefined; /** Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Indicates whether the `acs_system` is a credential manager. */ is_credential_manager: boolean; /** Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ visionline_metadata?: { /** Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset. */ mobile_access_uuid?: (string | undefined) | undefined; /** Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager. */ system_id?: (string | undefined) | undefined; /** 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. */ lan_address?: (string | undefined) | undefined; } | undefined; /** * @deprecated Use `external_type`.*/ system_type?: ('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') | undefined; /** * @deprecated Use `external_type_display_name`.*/ system_type_display_name?: string | undefined; /** Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ location: { /** Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located. */ time_zone: string | null; }; /** Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ name: string; /** Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ created_at: string; /** ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ workspace_id: string; /** 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). * @deprecated Use `connected_account_id`.*/ connected_account_ids: string[]; /** ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ connected_account_id: string; /** URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ image_url: string; /** Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image. */ image_alt_text: string; /** Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'seam_bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; /** Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'visionline_instance_unreachable'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'user_license_limit_reached'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_system_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_service_unavailable'; })[]; /** Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_custom_pins_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_does_not_match_location'; /** * @deprecated this field is deprecated.*/ misconfigured_acs_entrance_ids?: string[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_system'; })[]; }; }; maxDuration: undefined; }; '/acs/systems/list': { route: '/acs/systems/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list access systems. */ customer_key?: string | undefined; /** ID of the connected account by which you want to filter the list of access systems. */ connected_account_id?: string | undefined; /** String for which to search. Filters returned access systems to include all records that satisfy a partial match using `name` or `acs_system_id`. */ search?: string | undefined; }; formData: {}; jsonResponse: { acs_systems: { /** ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ default_credential_manager_acs_system_id?: (string | null) | undefined; /** ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_system_id: string; /** Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_user_count?: number | undefined; /** Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_access_group_count?: number | undefined; /** Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Indicates whether the `acs_system` is a credential manager. */ is_credential_manager: boolean; /** Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ visionline_metadata?: { /** Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset. */ mobile_access_uuid?: (string | undefined) | undefined; /** Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager. */ system_id?: (string | undefined) | undefined; /** 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. */ lan_address?: (string | undefined) | undefined; } | undefined; /** * @deprecated Use `external_type`.*/ system_type?: ('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') | undefined; /** * @deprecated Use `external_type_display_name`.*/ system_type_display_name?: string | undefined; /** Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ location: { /** Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located. */ time_zone: string | null; }; /** Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ name: string; /** Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ created_at: string; /** ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ workspace_id: string; /** 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). * @deprecated Use `connected_account_id`.*/ connected_account_ids: string[]; /** ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ connected_account_id: string; /** URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ image_url: string; /** Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image. */ image_alt_text: string; /** Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'seam_bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; /** Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'visionline_instance_unreachable'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'user_license_limit_reached'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_system_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_service_unavailable'; })[]; /** Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_custom_pins_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_does_not_match_location'; /** * @deprecated this field is deprecated.*/ misconfigured_acs_entrance_ids?: string[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_system'; })[]; }[]; }; maxDuration: undefined; }; '/acs/systems/list_compatible_credential_manager_acs_systems': { route: '/acs/systems/list_compatible_credential_manager_acs_systems'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system for which you want to retrieve all compatible credential manager systems. */ acs_system_id: string; }; formData: {}; jsonResponse: { acs_systems: { /** ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ default_credential_manager_acs_system_id?: (string | null) | undefined; /** ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_system_id: string; /** Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_user_count?: number | undefined; /** Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_access_group_count?: number | undefined; /** Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Indicates whether the `acs_system` is a credential manager. */ is_credential_manager: boolean; /** Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ visionline_metadata?: { /** Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset. */ mobile_access_uuid?: (string | undefined) | undefined; /** Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager. */ system_id?: (string | undefined) | undefined; /** 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. */ lan_address?: (string | undefined) | undefined; } | undefined; /** * @deprecated Use `external_type`.*/ system_type?: ('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') | undefined; /** * @deprecated Use `external_type_display_name`.*/ system_type_display_name?: string | undefined; /** Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ location: { /** Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located. */ time_zone: string | null; }; /** Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ name: string; /** Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ created_at: string; /** ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ workspace_id: string; /** 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). * @deprecated Use `connected_account_id`.*/ connected_account_ids: string[]; /** ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ connected_account_id: string; /** URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ image_url: string; /** Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image. */ image_alt_text: string; /** Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'seam_bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; /** Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'visionline_instance_unreachable'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'user_license_limit_reached'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_system_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_service_unavailable'; })[]; /** Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_custom_pins_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_does_not_match_location'; /** * @deprecated this field is deprecated.*/ misconfigured_acs_entrance_ids?: string[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_system'; })[]; }[]; }; maxDuration: undefined; }; '/acs/systems/report_devices': { route: '/acs/systems/report_devices'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the ACS system to report resources for */ acs_system_id: string; /** Array of ACS encoders to report */ acs_encoders?: { /** Whether the encoder is removed */ is_removed?: boolean | undefined; /** Hotek-specific metadata associated with the entrance. */ hotek_metadata: { /** The encoder number determined by the USB port connection. */ encoder_number: string; }; }[] | undefined; /** Array of ACS entrances to report */ acs_entrances?: { /** Whether the entrance is removed */ is_removed?: boolean | undefined; /** Hotek-specific metadata associated with the entrance. */ hotek_metadata: { /** The room number identifier */ room_number?: string | undefined; /** The common area name */ common_area_name?: string | undefined; common_area_number?: string | undefined; }; }[] | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/users/add_to_access_group': { route: '/acs/users/add_to_access_group'; method: 'PUT' | 'POST'; queryParams: {}; jsonBody: { /** ID of the access system user that you want to add to an access group. */ acs_user_id: string; /** ID of the access group to which you want to add an access system user. */ acs_access_group_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/users/create': { route: '/acs/users/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Full name of the new access system user. */ full_name: string; /** ID of the access system to which you want to add the new access system user. */ acs_system_id: string; /** Array of access group IDs to indicate the access groups to which you want to add the new access system user. */ acs_access_group_ids?: string[]; /** ID of the user identity with which you want to associate the new access system user. */ user_identity_id?: string | undefined; /** `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`. */ access_schedule?: { /** Starting timestamp for the new access system user's access. */ starts_at?: string | undefined; /** Ending timestamp for the new access system user's access. */ ends_at?: (string | undefined) | null; } | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). An 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. For 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). */ acs_user: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Indicates whether Seam manages the access system user. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/users/delete': { route: '/acs/users/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system user that you want to delete. You must provide either acs_user_id or user_identity_id */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** ID of the access system that you want to delete. You must provide acs_system_id with user_identity_id. */ acs_system_id?: string | undefined; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/users/get': { route: '/acs/users/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access system user that you want to get. You can only provide acs_user_id or user_identity_id. */ acs_user_id?: string | undefined; /** ID of the user identity that you want to get. You can only provide acs_user_id or user_identity_id. */ user_identity_id?: string | undefined; /** ID of the access system that you want to get. You can only provide acs_user_id or user_identity_id. */ acs_system_id?: string | undefined; }; formData: {}; jsonResponse: { /** 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). An 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. For 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). */ acs_user: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Indicates whether Seam manages the access system user. */ is_managed: true; }; }; maxDuration: undefined; }; '/acs/users/list': { route: '/acs/users/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity for which you want to retrieve all access system users. */ user_identity_id?: string | undefined; /** 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. */ user_identity_phone_number?: (string | null) | undefined; /** 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. */ user_identity_email_address?: (string | null) | undefined; /** ID of the `acs_system` for which you want to retrieve all access system users. */ acs_system_id?: string | undefined; /** 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`. */ search?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Timestamp by which to limit returned access system users. Returns users created before this timestamp. */ created_before?: Date | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { acs_users: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Indicates whether Seam manages the access system user. */ is_managed: true; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/acs/users/list_accessible_entrances': { route: '/acs/users/list_accessible_entrances'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** 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. */ acs_user_id?: string | undefined; /** ID of the user identity for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id. */ user_identity_id?: string | undefined; /** ID of the access system for which you want to list accessible entrances. You can only provide acs_system_id with user_identity_id. */ acs_system_id?: string | undefined; }; formData: {}; jsonResponse: { acs_entrances: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/acs/users/remove_from_access_group': { route: '/acs/users/remove_from_access_group'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** ID of the access group from which you want to remove an access system user. */ acs_access_group_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/users/revoke_access_to_all_entrances': { route: '/acs/users/revoke_access_to_all_entrances'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the access system user for whom you want to revoke access. You can only provide acs_user_id or user_identity_id. */ acs_user_id?: string | undefined; /** ID of the user identity for whom you want to revoke access. You can only provide acs_user_id or user_identity_id. */ user_identity_id?: string | undefined; /** ID of the access system for which you want to revoke access. You can only provide acs_system_id with user_identity_id. */ acs_system_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/users/suspend': { route: '/acs/users/suspend'; method: 'POST'; queryParams: {}; jsonBody: { /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ acs_system_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/users/unmanaged/get': { route: '/acs/users/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the unmanaged access system user that you want to get. */ acs_user_id: string; }; formData: {}; jsonResponse: { /** 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). */ acs_user: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; is_managed: false; }; }; maxDuration: undefined; }; '/acs/users/unmanaged/list': { route: '/acs/users/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity for which you want to retrieve all unmanaged access system users. */ user_identity_id?: string | undefined; /** 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. */ user_identity_phone_number?: (string | null) | undefined; /** 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. */ user_identity_email_address?: (string | null) | undefined; /** ID of the access system for which you want to retrieve all unmanaged access system users. */ acs_system_id?: string | undefined; /** Number of unmanaged access system users to return. */ limit?: number; /** 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`. */ search?: string | undefined; }; formData: {}; jsonResponse: { acs_users: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; is_managed: false; }[]; }; maxDuration: undefined; }; '/acs/users/unsuspend': { route: '/acs/users/unsuspend'; method: 'POST'; queryParams: {}; jsonBody: { /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** ID of the access system of the user that you want to unsuspend. You can only provide acs_system_id with user_identity_id. */ acs_system_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/acs/users/update': { route: '/acs/users/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** `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`. */ access_schedule?: ({ /** Starting timestamp for the access system user's access. */ starts_at: string; /** Ending timestamp for the access system user's access. */ ends_at: string; } | null) | undefined; /** ID of the access system user that you want to update. You can only provide acs_user_id or user_identity_id. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** ID of the access system that you want to update. You can only provide acs_system_id with user_identity_id. */ acs_system_id?: string | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/action_attempts/get': { route: '/action_attempts/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the action attempt that you want to get. */ action_attempt_id: string; }; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/action_attempts/list': { route: '/action_attempts/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** IDs of the action attempts that you want to retrieve. */ action_attempt_ids?: string[] | undefined; /** ID of the device to filter action attempts by. */ device_id?: string | undefined; /** Types of the action attempts that you want to list, such as `LOCK_DOOR` and `UNLOCK_DOOR`. */ action_types?: ('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')[] | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: ((string | undefined) | null) | undefined; }; formData: {}; jsonResponse: { action_attempts: ({ /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; })[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/bridges/get': { route: '/bridges/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the Seam Bridge that you want to get. */ bridge_id: string; }; formData: {}; jsonResponse: { /** Represents [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ bridge: { /** ID of Seam Bridge. */ bridge_id: string; /** ID of the workspace that contains Seam Bridge. */ workspace_id: string; /** Date and time at which Seam Bridge was created. */ created_at: string; }; }; maxDuration: undefined; }; '/bridges/list': { route: '/bridges/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { bridges: { /** ID of Seam Bridge. */ bridge_id: string; /** ID of the workspace that contains Seam Bridge. */ workspace_id: string; /** Date and time at which Seam Bridge was created. */ created_at: string; }[]; }; maxDuration: undefined; }; '/cameras/live_views/create': { route: '/cameras/live_views/create'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the camera to view. */ device_id: string; /** Indicates whether to include the camera's audio. */ include_audio?: boolean; /** Number of seconds for which the live view session is valid, up to 600. */ duration_seconds?: number; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ camera_live_view_session: { /** ID of the camera live view session. */ camera_live_view_session_id: string; /** ID of the camera. */ device_id: string; /** Token that authorizes the offer and stop requests for this session. */ token: string; /** Date and time at which the live view session expires. */ expires_at: string; }; }; maxDuration: undefined; }; '/cameras/live_views/offer': { route: '/cameras/live_views/offer'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the camera live view session. */ camera_live_view_session_id: string; /** Token returned when the camera live view session was created. */ token: string; /** WebRTC SDP offer from the viewer, limited to 64 KiB of UTF-8 data. */ sdp_offer: string; }; commonParams: {}; formData: {}; jsonResponse: { /** Represents the WebRTC SDP answer that starts streaming video from a camera for a live view session. */ camera_live_view_answer: { /** WebRTC SDP answer for the offer, limited to 64 KiB of UTF-8 data. */ sdp_answer: string; }; }; maxDuration: undefined; }; '/cameras/live_views/stop': { route: '/cameras/live_views/stop'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the camera live view session. */ camera_live_view_session_id: string; /** Token returned when the camera live view session was created. */ token: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/client_sessions/create': { route: '/client_sessions/create'; method: 'POST' | 'PUT'; queryParams: {}; jsonBody: { /** Customer ID that you want to associate with the new client session. */ customer_id?: string | undefined; /** Customer key that you want to associate with the new client session. */ customer_key?: string | undefined; /** 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. */ user_identifier_key?: string | undefined; /** IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) for which you want to create a client session. */ connect_webview_ids?: string[] | undefined; /** IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) for which you want to create a client session. */ connected_account_ids?: string[] | undefined; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids?: string[] | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ expires_at?: Date | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. You create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides. When 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`. A 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. See 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). */ client_session: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }; }; maxDuration: undefined; }; '/client_sessions/delete': { route: '/client_sessions/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the client session that you want to delete. */ client_session_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/client_sessions/get': { route: '/client_sessions/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the client session that you want to get. */ client_session_id?: string | undefined; /** User identifier key associated with the client session that you want to get. */ user_identifier_key?: string | undefined; }; formData: {}; jsonResponse: { /** 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. You create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides. When 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`. A 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. See 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). */ client_session: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }; }; maxDuration: undefined; }; '/client_sessions/get_or_create': { route: '/client_sessions/get_or_create'; method: 'POST'; queryParams: {}; jsonBody: { /** 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. */ user_identifier_key?: string | undefined; /** 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). */ connect_webview_ids?: string[] | undefined; /** 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). */ connected_account_ids?: string[] | undefined; /** 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. * @deprecated Use `user_identity_id`.*/ user_identity_ids?: string[] | undefined; /** 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). */ user_identity_id?: string | undefined; /** 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. */ expires_at?: Date | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. You create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides. When 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`. A 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. See 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). */ client_session: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }; }; maxDuration: undefined; }; '/client_sessions/grant_access': { route: '/client_sessions/grant_access'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the client session to which you want to grant access to resources. */ client_session_id?: string | undefined; /** Your user ID for the user that you want to associate with the client session. */ user_identifier_key?: string | undefined; /** IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) that you want to associate with the client session. */ connected_account_ids?: string[] | undefined; /** IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) that you want to associate with the client session. */ connect_webview_ids?: string[] | undefined; /** 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. * @deprecated Use `user_identity_id`.*/ user_identity_ids?: string[] | undefined; /** 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. */ user_identity_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. You create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides. When 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`. A 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. See 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). */ client_session: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }; }; maxDuration: undefined; }; '/client_sessions/list': { route: '/client_sessions/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list client sessions. */ customer_key?: string | undefined; /** ID of the client session that you want to retrieve. */ client_session_id?: string | undefined; /** Your user ID for the user by which you want to filter client sessions. */ user_identifier_key?: string | undefined; /** 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. */ connect_webview_id?: (string | null) | undefined; /** Indicates whether to retrieve only client sessions without associated user identifier keys. */ without_user_identifier_key?: boolean | undefined; /** 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. */ user_identity_id?: (string | null) | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { client_sessions: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/client_sessions/revoke': { route: '/client_sessions/revoke'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the client session that you want to revoke. */ client_session_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/connect_webviews/create': { route: '/connect_webviews/create'; method: 'POST'; queryParams: {}; jsonBody: { /** */ device_selection_mode?: ('none' | 'single' | 'multiple') | undefined; /** URL that you want to redirect the user to after the provider login is complete. */ custom_redirect_url?: string | undefined; /** 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`. */ custom_redirect_failure_url?: string | undefined; /** 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. */ customer_key?: string | undefined; /** 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. */ accepted_providers?: ('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')[] | undefined; /** 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. */ provider_category?: ('stable' | 'consumer_smartlocks' | 'beta' | 'thermostats' | 'noise_sensors' | 'access_control_systems' | 'cameras' | 'connectors' | 'internal_beta') | undefined; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; /** 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). */ automatically_manage_new_devices?: boolean | undefined; /** 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). */ wait_for_device_creation?: boolean; /** 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. */ accepted_capabilities?: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[] | undefined; /** List of provider keys to exclude from the Connect Webview. These providers will not be shown when the user tries to connect an account. */ excluded_providers?: string[] | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** Represents a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews). Connect 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. Connect 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. To 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. When 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. To 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. */ connect_webview: { /** ID of the Connect Webview. */ connect_webview_id: string; /** ID of the workspace that contains the Connect Webview. */ workspace_id: string; /** Date and time at which the Connect Webview was created. */ created_at: string; /** ID of the connected account associated with the Connect Webview. */ connected_account_id: string | null; /** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */ url: string; /** Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`. */ device_selection_mode: 'none' | 'single' | 'multiple'; /** 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). */ accepted_providers: string[]; /** 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`. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** * @deprecated Unused. Will be removed.*/ accepted_devices: string[]; /** * @deprecated Unused. Will be removed.*/ any_device_allowed: boolean; /** Indicates whether any provider is allowed. */ any_provider_allowed: boolean; /** Indicates whether the user logged in successfully using the Connect Webview. */ login_successful: boolean; /** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */ status: 'pending' | 'failed' | 'authorized'; /** 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. */ custom_redirect_url: string | null; /** URL to which the Connect Webview should redirect when an unexpected error occurs. */ custom_redirect_failure_url: string | null; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** 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. */ wait_for_device_creation: boolean; /** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */ authorized_at: string | null; /** 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). */ selected_provider: string | null; /** The customer key associated with this webview, if any. */ customer_key?: string | undefined; }; }; maxDuration: undefined; }; '/connect_webviews/delete': { route: '/connect_webviews/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the Connect Webview that you want to delete. */ connect_webview_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/connect_webviews/get': { route: '/connect_webviews/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the Connect Webview that you want to get. */ connect_webview_id: string; }; formData: {}; jsonResponse: { /** Represents a [Connect Webview](https://www.seam.co/docs/core-concepts/connect-webviews). Connect 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. Connect 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. To 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. When 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. To 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. */ connect_webview: { /** ID of the Connect Webview. */ connect_webview_id: string; /** ID of the workspace that contains the Connect Webview. */ workspace_id: string; /** Date and time at which the Connect Webview was created. */ created_at: string; /** ID of the connected account associated with the Connect Webview. */ connected_account_id: string | null; /** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */ url: string; /** Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`. */ device_selection_mode: 'none' | 'single' | 'multiple'; /** 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). */ accepted_providers: string[]; /** 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`. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** * @deprecated Unused. Will be removed.*/ accepted_devices: string[]; /** * @deprecated Unused. Will be removed.*/ any_device_allowed: boolean; /** Indicates whether any provider is allowed. */ any_provider_allowed: boolean; /** Indicates whether the user logged in successfully using the Connect Webview. */ login_successful: boolean; /** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */ status: 'pending' | 'failed' | 'authorized'; /** 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. */ custom_redirect_url: string | null; /** URL to which the Connect Webview should redirect when an unexpected error occurs. */ custom_redirect_failure_url: string | null; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** 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. */ wait_for_device_creation: boolean; /** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */ authorized_at: string | null; /** 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). */ selected_provider: string | null; /** The customer key associated with this webview, if any. */ customer_key?: string | undefined; }; }; maxDuration: undefined; }; '/connect_webviews/list': { route: '/connect_webviews/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list connect webviews. */ customer_key?: string | undefined; /** Your user ID for the user by which you want to filter Connect Webviews. */ user_identifier_key?: string | undefined; /** 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. */ custom_metadata_has?: { [x: string]: string | boolean | null; } | undefined; /** 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`. */ search?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { connect_webviews: { /** ID of the Connect Webview. */ connect_webview_id: string; /** ID of the workspace that contains the Connect Webview. */ workspace_id: string; /** Date and time at which the Connect Webview was created. */ created_at: string; /** ID of the connected account associated with the Connect Webview. */ connected_account_id: string | null; /** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */ url: string; /** Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`. */ device_selection_mode: 'none' | 'single' | 'multiple'; /** 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). */ accepted_providers: string[]; /** 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`. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** * @deprecated Unused. Will be removed.*/ accepted_devices: string[]; /** * @deprecated Unused. Will be removed.*/ any_device_allowed: boolean; /** Indicates whether any provider is allowed. */ any_provider_allowed: boolean; /** Indicates whether the user logged in successfully using the Connect Webview. */ login_successful: boolean; /** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */ status: 'pending' | 'failed' | 'authorized'; /** 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. */ custom_redirect_url: string | null; /** URL to which the Connect Webview should redirect when an unexpected error occurs. */ custom_redirect_failure_url: string | null; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** 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. */ wait_for_device_creation: boolean; /** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */ authorized_at: string | null; /** 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). */ selected_provider: string | null; /** The customer key associated with this webview, if any. */ customer_key?: string | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/connected_accounts/delete': { route: '/connected_accounts/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the connected account that you want to delete. */ connected_account_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/connected_accounts/get': { route: '/connected_accounts/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the connected account that you want to get. */ connected_account_id: string; } | { /** Email address associated with the connected account that you want to get. */ email: string; }; formData: {}; jsonResponse: { /** 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. */ connected_account: { /** ID of the connected account. */ connected_account_id: string; /** Date and time at which the connected account was created. */ created_at?: string | undefined; /** User identifier associated with the connected account. * @deprecated Use `display_name` instead.*/ user_identifier?: { /** Username of the user identifier associated with the connected account. */ username?: string | undefined; /** API URL for the user identifier associated with the connected account. */ api_url?: string | undefined; /** Email address of the user identifier associated with the connected account. */ email?: string | undefined; /** Phone number of the user identifier associated with the connected account. */ phone?: string | undefined; /** Indicates whether the user identifier associated with the connected account is exclusive. */ exclusive?: boolean | undefined; } | undefined; /** Type of connected account. */ account_type?: string | undefined; /** Display name for the connected account type. */ account_type_display_name: string; /** Logo URL for the connected account provider. */ image_url?: string | undefined; /** Display name for the connected account. */ display_name: string; /** Errors associated with the connected account. */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Salto KS metadata associated with the connected account that has an error. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has an error. */ sites?: ({ /** ID of a Salto site associated with the connected account that has an error. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has an error. */ site_name?: (string | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */ subscribed_site_user_count?: (number | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */ site_user_subscription_limit?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; })[]; /** Warnings associated with the connected account. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_connected_account'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; /** Salto KS metadata associated with the connected account that has a warning. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has a warning. */ sites?: ({ /** ID of a Salto site associated with the connected account that has a warning. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has a warning. */ site_name?: (string | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has a warning. */ site_user_subscription_limit?: (number | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has a warning. */ subscribed_site_user_count?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'account_reauthorization_requested'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_service_unavailable'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'dormakaba_sites_unapproved'; })[]; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** Your unique key for the customer associated with this connected account. */ customer_key?: string | undefined; /** List of capabilities that were accepted during the account connection process. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** 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. */ default_checkin_time?: string | undefined; /** Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration. */ default_checkout_time?: string | undefined; /** IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. */ time_zone?: string | undefined; /** 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. */ ical_feed_origin?: string | undefined; /** For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration. */ ical_url?: string | undefined; }; }; maxDuration: undefined; }; '/connected_accounts/list': { route: '/connected_accounts/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Your user ID for the user by which you want to filter connected accounts. */ user_identifier_key?: string | undefined; /** 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. */ custom_metadata_has?: { [x: string]: string | boolean | null; } | undefined; /** Customer key by which you want to filter connected accounts. */ customer_key?: string | undefined; /** ID of the space by which you want to filter connected accounts. */ space_id?: string | undefined; /** 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`. */ search?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { connected_accounts: { /** ID of the connected account. */ connected_account_id: string; /** Date and time at which the connected account was created. */ created_at?: string | undefined; /** User identifier associated with the connected account. * @deprecated Use `display_name` instead.*/ user_identifier?: { /** Username of the user identifier associated with the connected account. */ username?: string | undefined; /** API URL for the user identifier associated with the connected account. */ api_url?: string | undefined; /** Email address of the user identifier associated with the connected account. */ email?: string | undefined; /** Phone number of the user identifier associated with the connected account. */ phone?: string | undefined; /** Indicates whether the user identifier associated with the connected account is exclusive. */ exclusive?: boolean | undefined; } | undefined; /** Type of connected account. */ account_type?: string | undefined; /** Display name for the connected account type. */ account_type_display_name: string; /** Logo URL for the connected account provider. */ image_url?: string | undefined; /** Display name for the connected account. */ display_name: string; /** Errors associated with the connected account. */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Salto KS metadata associated with the connected account that has an error. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has an error. */ sites?: ({ /** ID of a Salto site associated with the connected account that has an error. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has an error. */ site_name?: (string | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */ subscribed_site_user_count?: (number | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */ site_user_subscription_limit?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; })[]; /** Warnings associated with the connected account. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_connected_account'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; /** Salto KS metadata associated with the connected account that has a warning. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has a warning. */ sites?: ({ /** ID of a Salto site associated with the connected account that has a warning. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has a warning. */ site_name?: (string | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has a warning. */ site_user_subscription_limit?: (number | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has a warning. */ subscribed_site_user_count?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'account_reauthorization_requested'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_service_unavailable'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'dormakaba_sites_unapproved'; })[]; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** Your unique key for the customer associated with this connected account. */ customer_key?: string | undefined; /** List of capabilities that were accepted during the account connection process. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** 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. */ default_checkin_time?: string | undefined; /** Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration. */ default_checkout_time?: string | undefined; /** IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. */ time_zone?: string | undefined; /** 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. */ ical_feed_origin?: string | undefined; /** For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration. */ ical_url?: string | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/connected_accounts/simulate/disconnect': { route: '/connected_accounts/simulate/disconnect'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connected account you want to simulate as disconnected. */ connected_account_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/connected_accounts/sync': { route: '/connected_accounts/sync'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connected account that you want to sync. */ connected_account_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/connected_accounts/update': { route: '/connected_accounts/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the connected account that you want to update. */ connected_account_id: string; /** Indicates whether newly-added devices should appear as [managed devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ automatically_manage_new_devices?: boolean | undefined; /** Human-readable name for the connected account, shown in the dashboard. For example, `Booking from Airbnb House 1`. */ display_name?: string | undefined; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; /** 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`. */ accepted_capabilities?: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[] | undefined; /** 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. */ customer_key?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ connected_account: { /** ID of the connected account. */ connected_account_id: string; /** Date and time at which the connected account was created. */ created_at?: string | undefined; /** User identifier associated with the connected account. * @deprecated Use `display_name` instead.*/ user_identifier?: { /** Username of the user identifier associated with the connected account. */ username?: string | undefined; /** API URL for the user identifier associated with the connected account. */ api_url?: string | undefined; /** Email address of the user identifier associated with the connected account. */ email?: string | undefined; /** Phone number of the user identifier associated with the connected account. */ phone?: string | undefined; /** Indicates whether the user identifier associated with the connected account is exclusive. */ exclusive?: boolean | undefined; } | undefined; /** Type of connected account. */ account_type?: string | undefined; /** Display name for the connected account type. */ account_type_display_name: string; /** Logo URL for the connected account provider. */ image_url?: string | undefined; /** Display name for the connected account. */ display_name: string; /** Errors associated with the connected account. */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Salto KS metadata associated with the connected account that has an error. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has an error. */ sites?: ({ /** ID of a Salto site associated with the connected account that has an error. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has an error. */ site_name?: (string | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */ subscribed_site_user_count?: (number | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */ site_user_subscription_limit?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; })[]; /** Warnings associated with the connected account. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_connected_account'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; /** Salto KS metadata associated with the connected account that has a warning. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has a warning. */ sites?: ({ /** ID of a Salto site associated with the connected account that has a warning. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has a warning. */ site_name?: (string | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has a warning. */ site_user_subscription_limit?: (number | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has a warning. */ subscribed_site_user_count?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'account_reauthorization_requested'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_service_unavailable'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'dormakaba_sites_unapproved'; })[]; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** Your unique key for the customer associated with this connected account. */ customer_key?: string | undefined; /** List of capabilities that were accepted during the account connection process. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** 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. */ default_checkin_time?: string | undefined; /** Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration. */ default_checkout_time?: string | undefined; /** IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. */ time_zone?: string | undefined; /** 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. */ ical_feed_origin?: string | undefined; /** For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration. */ ical_url?: string | undefined; }; }; maxDuration: undefined; }; '/customers/create_portal': { route: '/customers/create_portal'; method: 'POST'; queryParams: {}; jsonBody: { /** Whether the portal is embedded in another application. */ is_embedded?: boolean; /** 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. */ read_only?: boolean; /** Configuration for the landing page when the portal loads. */ landing_page?: { manage?: (({ space_key: string; } | { property_key: string; } | { room_key: string; } | { common_area_key: string; } | { unit_key: string; } | { facility_key: string; } | { building_key: string; } | { listing_key: string; } | { property_listing_key: string; } | { site_key: string; }) | ({ reservation_key: string; } | { booking_key: string; } | { access_grant_key: string; })) | undefined; } | undefined; /** The locale to use for the portal. */ locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined; /** Whether to exclude the option to select a locale within the portal UI. */ exclude_locale_picker?: boolean; /** The ID of the customization profile to use for the portal. */ customization_profile_id?: string | undefined; /** Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata. */ customer_resources_filters?: { /** The custom_metadata field name to filter on. */ field: string; /** The comparison operation. Currently only '=' is supported. */ operation: '='; /** The value to compare against. */ value: string | boolean; }[] | undefined; /** Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links. */ navigation_mode?: 'full' | 'restricted'; /** Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. */ deep_link?: ({ resource_type: 'reservation'; resource_key: string; } | { resource_type: 'space'; resource_key: string; } | { resource_type: 'device'; resource_id: string; } | { resource_type: 'acs_entrance'; resource_id: string; }) | undefined; /** Whether the portal is in developer mode. Only available for Seam employees. */ _dev?: boolean; /** 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. */ features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; } & { customer_data?: { /** Your unique identifier for the customer. */ customer_key: string; /** 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. */ customization_profile_id?: (string | null) | undefined; /** 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. */ low_battery_alert_threshold?: (number | null) | undefined; /** List of general spaces or areas. */ spaces?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the space. */ space_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; /** 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. */ duration_minutes?: number | undefined; /** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: { /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | undefined; }[] | undefined; /** List of general sites or areas. */ sites?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the site. */ site_key: string; }[] | undefined; /** List of short-term rental properties. */ properties?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the property. */ property_key: string; }[] | undefined; /** List of hotel or hospitality rooms. */ rooms?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the room. */ room_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; }[] | undefined; /** List of shared common areas. */ common_areas?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the common area. */ common_area_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; }[] | undefined; /** List of multi-family residential units. */ units?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the unit. */ unit_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; }[] | undefined; /** List of gym or fitness facilities. */ facilities?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the facility. */ facility_key: string; }[] | undefined; /** List of buildings. */ buildings?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the building. */ building_key: string; }[] | undefined; /** List of property listings. */ listings?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the listing. */ listing_key: string; }[] | undefined; /** List of property listings. */ property_listings?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the property listing. */ property_listing_key: string; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; }[] | undefined; /** List of guests. */ guests?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the guest. */ guest_key: string; }[] | undefined; /** List of tenants. */ tenants?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the tenant. */ tenant_key: string; }[] | undefined; /** List of residents. */ residents?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the resident. */ resident_key: string; }[] | undefined; /** List of users. */ users?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the user. */ user_key: string; }[] | undefined; /** List of user identities. */ user_identities?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the user identity. */ user_identity_key: string; }[] | undefined; /** List of staff members. */ staff_members?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the staff. */ staff_member_key: string; /** List of unique identifiers for the spaces the staff member is associated with. */ space_keys?: string[] | undefined; /** List of unique identifiers for the properties the staff member is associated with. */ property_keys?: string[] | undefined; /** List of unique identifiers for the rooms the staff member is associated with. */ room_keys?: string[] | undefined; /** List of unique identifiers for the common areas the staff member is associated with. */ common_area_keys?: string[] | undefined; /** List of unique identifiers for the units the staff member is associated with. */ unit_keys?: string[] | undefined; /** List of unique identifiers for the facilities the staff member is associated with. */ facility_keys?: string[] | undefined; /** List of unique identifiers for the buildings the staff member is associated with. */ building_keys?: string[] | undefined; /** List of unique identifiers for the listings the staff member is associated with. */ listing_keys?: string[] | undefined; /** List of unique identifiers for the property listings the staff member is associated with. */ property_listing_keys?: string[] | undefined; /** List of unique identifiers for the sites the staff member is associated with. */ site_keys?: string[] | undefined; }[] | undefined; /** List of reservations. */ reservations?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your unique identifier for the reservation. */ reservation_key: string; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; /** 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. */ sub_reservations?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your identifier for the sub-reservation. Must be unique across all your reservations and sub-reservations, and stay with the same reservation. */ sub_reservation_key: string; /** 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. */ is_primary?: boolean | undefined; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; /** List of bookings. */ bookings?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your unique identifier for the booking. */ booking_key: string; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; /** List of access grants. */ access_grants?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your unique identifier for the access grant. */ access_grant_key: string; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. With 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. Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */ customer_portal: { /** URL for the customer portal. */ url: string; /** Customer key for the customer portal. */ customer_key: string; /** Date and time at which the customer portal link expires. */ expires_at: string; /** ID of the workspace associated with the customer portal. */ workspace_id: string; /** Date and time at which the customer portal link was created. */ created_at: string; }; /** 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. With 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. Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */ magic_link: { /** URL for the magic link. */ url: string; /** Customer key for the magic link. */ customer_key: string; /** Date and time at which the magic link expires. */ expires_at: string; /** ID of the workspace associated with the magic link. */ workspace_id: string; /** Date and time at which the magic link was created. */ created_at: string; }; }; maxDuration: undefined; }; '/customers/delete_data': { route: '/customers/delete_data'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** List of customer keys to delete all data for. */ customer_keys?: string[] | undefined; /** List of space keys to delete. */ space_keys?: string[] | undefined; /** List of property keys to delete. */ property_keys?: string[] | undefined; /** List of room keys to delete. */ room_keys?: string[] | undefined; /** List of common area keys to delete. */ common_area_keys?: string[] | undefined; /** List of unit keys to delete. */ unit_keys?: string[] | undefined; /** List of facility keys to delete. */ facility_keys?: string[] | undefined; /** List of building keys to delete. */ building_keys?: string[] | undefined; /** List of listing keys to delete. */ listing_keys?: string[] | undefined; /** List of property listing keys to delete. */ property_listing_keys?: string[] | undefined; /** List of guest keys to delete. */ guest_keys?: string[] | undefined; /** List of tenant keys to delete. */ tenant_keys?: string[] | undefined; /** List of resident keys to delete. */ resident_keys?: string[] | undefined; /** List of user keys to delete. */ user_keys?: string[] | undefined; /** List of user identity keys to delete. */ user_identity_keys?: string[] | undefined; /** List of reservation keys to delete. */ reservation_keys?: string[] | undefined; /** List of booking keys to delete. */ booking_keys?: string[] | undefined; /** List of access grant keys to delete. */ access_grant_keys?: string[] | undefined; /** List of staff member keys to delete. */ staff_member_keys?: string[] | undefined; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/customers/push_data': { route: '/customers/push_data'; method: 'POST'; queryParams: {}; jsonBody: { /** Your unique identifier for the customer. */ customer_key: string; /** 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. */ customization_profile_id?: (string | null) | undefined; /** 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. */ low_battery_alert_threshold?: (number | null) | undefined; /** List of general spaces or areas. */ spaces?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the space. */ space_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; /** 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. */ duration_minutes?: number | undefined; /** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: { /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | undefined; }[] | undefined; /** List of general sites or areas. */ sites?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the site. */ site_key: string; }[] | undefined; /** List of short-term rental properties. */ properties?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the property. */ property_key: string; }[] | undefined; /** List of hotel or hospitality rooms. */ rooms?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the room. */ room_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; }[] | undefined; /** List of shared common areas. */ common_areas?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the common area. */ common_area_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; }[] | undefined; /** List of multi-family residential units. */ units?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the unit. */ unit_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; }[] | undefined; /** List of gym or fitness facilities. */ facilities?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the facility. */ facility_key: string; }[] | undefined; /** List of buildings. */ buildings?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the building. */ building_key: string; }[] | undefined; /** List of property listings. */ listings?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the listing. */ listing_key: string; }[] | undefined; /** List of property listings. */ property_listings?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the property listing. */ property_listing_key: string; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; }[] | undefined; /** List of guests. */ guests?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the guest. */ guest_key: string; }[] | undefined; /** List of tenants. */ tenants?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the tenant. */ tenant_key: string; }[] | undefined; /** List of residents. */ residents?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the resident. */ resident_key: string; }[] | undefined; /** List of users. */ users?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the user. */ user_key: string; }[] | undefined; /** List of user identities. */ user_identities?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the user identity. */ user_identity_key: string; }[] | undefined; /** List of staff members. */ staff_members?: { /** Your display name for this user identity resource. */ name: string; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Your unique identifier for the staff. */ staff_member_key: string; /** List of unique identifiers for the spaces the staff member is associated with. */ space_keys?: string[] | undefined; /** List of unique identifiers for the properties the staff member is associated with. */ property_keys?: string[] | undefined; /** List of unique identifiers for the rooms the staff member is associated with. */ room_keys?: string[] | undefined; /** List of unique identifiers for the common areas the staff member is associated with. */ common_area_keys?: string[] | undefined; /** List of unique identifiers for the units the staff member is associated with. */ unit_keys?: string[] | undefined; /** List of unique identifiers for the facilities the staff member is associated with. */ facility_keys?: string[] | undefined; /** List of unique identifiers for the buildings the staff member is associated with. */ building_keys?: string[] | undefined; /** List of unique identifiers for the listings the staff member is associated with. */ listing_keys?: string[] | undefined; /** List of unique identifiers for the property listings the staff member is associated with. */ property_listing_keys?: string[] | undefined; /** List of unique identifiers for the sites the staff member is associated with. */ site_keys?: string[] | undefined; }[] | undefined; /** List of reservations. */ reservations?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your unique identifier for the reservation. */ reservation_key: string; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; /** 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. */ sub_reservations?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your identifier for the sub-reservation. Must be unique across all your reservations and sub-reservations, and stay with the same reservation. */ sub_reservation_key: string; /** 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. */ is_primary?: boolean | undefined; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; /** List of bookings. */ bookings?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your unique identifier for the booking. */ booking_key: string; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; /** List of access grants. */ access_grants?: { /** Your name for this access grant resource. */ name?: string | undefined; /** Starting date and time for the access grant. */ starts_at?: string | undefined; /** Ending date and time for the access grant. */ ends_at?: string | undefined; /** 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. */ preferred_code?: (string | null) | undefined; /** Your unique identifier for the access grant. */ access_grant_key: string; /** Guest key associated with the access grant. */ guest_key?: string | undefined; /** Tenant key associated with the access grant. */ tenant_key?: string | undefined; /** Resident key associated with the access grant. */ resident_key?: string | undefined; /** User key associated with the access grant. */ user_key?: string | undefined; /** User identity key associated with the access grant. */ user_identity_key?: string | undefined; /** Space keys associated with the access grant. */ space_keys?: string[] | undefined; /** Property keys associated with the access grant. */ property_keys?: string[] | undefined; /** Room keys associated with the access grant. */ room_keys?: string[] | undefined; /** Common area keys associated with the access grant. */ common_area_keys?: string[] | undefined; /** Unit keys associated with the access grant. */ unit_keys?: string[] | undefined; /** Facility keys associated with the access grant. */ facility_keys?: string[] | undefined; /** Building keys associated with the access grant. */ building_keys?: string[] | undefined; /** Listing keys associated with the access grant. */ listing_keys?: string[] | undefined; }[] | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/customers/reservations/create_deep_link': { route: '/customers/reservations/create_deep_link'; method: 'POST'; queryParams: {}; jsonBody: { /** The customer_key identifying the customer who owns the reservation. */ customer_key: string; /** The key of the reservation to create a deep link for. */ reservation_key: string; }; commonParams: {}; formData: {}; jsonResponse: { deep_link: { /** The deep link URL to embed in an iframe. */ url: string; /** When the deep link expires. */ expires_at: string; /** The ID of the created customer portal. */ customer_portal_id: string; }; }; maxDuration: undefined; }; '/devices/delete': { route: '/devices/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the device that you want to delete. */ device_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/get': { route: '/devices/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the device that you want to get. */ device_id?: string | undefined; /** Name of the device that you want to get. */ name?: string | undefined; }; formData: {}; jsonResponse: { /** Represents a [device](https://www.seam.co/docs/core-concepts/devices) that has been connected to Seam. */ device: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }; }; maxDuration: undefined; }; '/devices/list': { route: '/devices/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list devices. */ customer_key?: string | undefined; /** ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined; /** Array of IDs of the connected accounts for which you want to list devices. */ connected_account_ids?: string[] | undefined; /** ID of the Connect Webview for which you want to list devices. */ connect_webview_id?: string | undefined; /** Device type for which you want to list devices. */ device_type?: (('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool')) | undefined; /** Array of device types for which you want to list devices. */ device_types?: (('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'))[] | undefined; /** Manufacturer for which you want to list devices. */ manufacturer?: ('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') | undefined; /** Array of device IDs for which you want to list devices. */ device_ids?: string[] | undefined; /** Numerical limit on the number of devices to return. */ limit?: number; /** Timestamp by which to limit returned devices. Returns devices created before this timestamp. */ created_before?: Date | undefined; /** Your own internal user ID for the user for which you want to list devices. */ user_identifier_key?: string | undefined; /** 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. */ custom_metadata_has?: { [x: string]: string | boolean | null; } | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; /** */ include_if?: ('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')[] | undefined; /** */ exclude_if?: ('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')[] | undefined; /** * @deprecated Use `space_id`.*/ unstable_location_id?: (string | null) | undefined; /** ID of the space for which you want to list devices. */ space_id?: string | undefined; /** 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`. */ search?: string | undefined; /** ID of the parent device whose child devices you want to list. Specify `null` to list devices that have no parent device. */ parent_device_id?: (string | null) | undefined; }; formData: {}; jsonResponse: { devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/devices/list_device_providers': { route: '/devices/list_device_providers'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Category for which you want to list providers. */ provider_category?: ('stable' | 'consumer_smartlocks' | 'beta' | 'thermostats' | 'noise_sensors' | 'access_control_systems' | 'cameras' | 'connectors') | undefined; }; formData: {}; jsonResponse: { device_providers: { /** Name of the device provider. */ device_provider_name: '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'; /** Display name for the device provider. */ display_name: string; /** Image URL for the device provider. */ image_url: string; /** List of provider categories to which the device provider belongs, such as `stable`, `consumer_smartlocks`, `thermostats`, and so on. */ provider_categories: ('stable' | 'consumer_smartlocks' | 'beta' | 'thermostats' | 'noise_sensors' | 'access_control_systems' | 'cameras' | 'connectors')[]; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/devices/report_provider_metadata': { route: '/devices/report_provider_metadata'; method: 'POST'; queryParams: {}; jsonBody: { /** Array of devices with provider metadata to update */ devices: { /** ID of the device to update */ device_id: string; /** Ultraloq-specific metadata to update */ ultraloq_metadata?: { /** IANA timezone for the Ultraloq device */ time_zone: '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'; } | undefined; /** Schlage-specific metadata to update */ schlage_metadata?: { /** IANA timezone for the Schlage device */ time_zone: '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'; } | undefined; /** Omnitec-specific metadata to update */ omnitec_metadata?: { /** IANA timezone for the Omnitec device */ time_zone: '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'; } | undefined; }[]; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/simulate/connect': { route: '/devices/simulate/connect'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device that you want to simulate connecting to Seam. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/simulate/connect_to_hub': { route: '/devices/simulate/connect_to_hub'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device whose hub you want to reconnect. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/simulate/disconnect': { route: '/devices/simulate/disconnect'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device that you want to simulate disconnecting from Seam. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/simulate/disconnect_from_hub': { route: '/devices/simulate/disconnect_from_hub'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device whose hub you want to disconnect. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/simulate/paid_subscription': { route: '/devices/simulate/paid_subscription'; method: 'POST'; queryParams: {}; jsonBody: { device_id: string; is_expired: boolean; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/simulate/remove': { route: '/devices/simulate/remove'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device that you want to simulate removing from Seam. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/unmanaged/get': { route: '/devices/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the unmanaged device that you want to get. */ device_id?: string | undefined; /** Name of the unmanaged device that you want to get. */ name?: string | undefined; }; formData: {}; jsonResponse: { /** 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). */ device: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ display_name: string; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates that Seam does not manage the device. */ is_managed: false; /** properties of the device. */ properties?: { /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Indicates whether the device is online. */ online: boolean; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; } | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }; }; maxDuration: undefined; }; '/devices/unmanaged/list': { route: '/devices/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list devices. */ customer_key?: string | undefined; /** ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined; /** Array of IDs of the connected accounts for which you want to list devices. */ connected_account_ids?: string[] | undefined; /** ID of the Connect Webview for which you want to list devices. */ connect_webview_id?: string | undefined; /** Device type for which you want to list devices. */ device_type?: (('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool')) | undefined; /** Array of device types for which you want to list devices. */ device_types?: (('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'))[] | undefined; /** Manufacturer for which you want to list devices. */ manufacturer?: ('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') | undefined; /** Array of device IDs for which you want to list devices. */ device_ids?: string[] | undefined; /** Timestamp by which to limit returned devices. Returns devices created before this timestamp. */ created_before?: Date | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; /** */ include_if?: ('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')[] | undefined; /** */ exclude_if?: ('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')[] | undefined; /** 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`. */ search?: string | undefined; /** ID of the parent device whose child devices you want to list. Specify `null` to list devices that have no parent device. */ parent_device_id?: (string | null) | undefined; /** Numerical limit on the number of devices to return. */ limit?: number; }; formData: {}; jsonResponse: { devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ display_name: string; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates that Seam does not manage the device. */ is_managed: false; /** properties of the device. */ properties?: { /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Indicates whether the device is online. */ online: boolean; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; } | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/devices/unmanaged/update': { route: '/devices/unmanaged/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** ID of the unmanaged device that you want to update. */ device_id: string; /** Indicates whether the device is managed. Set this parameter to `true` to convert an unmanaged device to managed. */ is_managed?: true | undefined; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/devices/update': { route: '/devices/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** ID of the device that you want to update. */ device_id: string; properties?: { /** Name for the device. */ name?: (string | null) | undefined; } | undefined; /** Name for the device. */ name?: (string | null) | undefined; /** Indicates whether the device is managed. To unmanage a device, set `is_managed` to `false`. */ is_managed?: boolean; /** 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. */ custom_metadata?: { [x: string]: string | boolean | null; } | undefined; /** 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. */ backup_access_code_pool_enabled?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/events/get': { route: '/events/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Unique identifier for the event that you want to get. */ event_id?: string | undefined; /** Type of the event that you want to get. */ event_type?: string | undefined; /** Unique identifier for the device that triggered the event that you want to get. */ device_id?: string | undefined; }; formData: {}; jsonResponse: { /** 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. As 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. */ event?: ({ /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.changed'; /** List of properties that changed on the access code. */ changed_properties?: { /** Name of the property that changed (e.g. `code`). */ property: string; /** Previous value of the property, or null if not set. */ from: string | null; /** New value of the property, or null if cleared. */ to: string | null; }[] | undefined; /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */ change_reason?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.name_changed'; /** Previous access code name configuration. */ from: { /** Previous name of the access code. */ name: string | null; }; /** New access code name configuration. */ to: { /** New name of the access code. */ name: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.code_changed'; /** Previous pin code configuration. */ from: { /** Previous pin code. */ code: string | null; }; /** New pin code configuration. */ to: { /** New pin code. */ code: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.time_frame_changed'; /** Previous time frame configuration. */ from: { /** Previous start time. */ starts_at: string | null; /** Previous end time. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time. */ starts_at: string | null; /** New end time. */ ends_at: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.mutations_requested'; /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */ requested_mutations: { /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */ mutation_code: 'updating_name' | 'updating_code' | 'updating_time_frame' | 'deleting' | 'creating' | 'deferring_creation'; /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ from?: { [x: string]: unknown; } | undefined; /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ to?: { [x: string]: unknown; } | undefined; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.scheduled_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.set_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.removed_from_device'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_setting_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_set_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.issued'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_issuing'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_issue'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_update'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_delete'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted'; /** Code for the affected access code. */ code: string | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_removing_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_remove_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.modified_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.backup_access_code_pulled'; /** ID of the backup access code that was pulled from the pool. */ backup_access_code_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.failed_to_convert_to_managed'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_all_doors'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_door'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_to_door_lost'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_times_changed'; /** Key of the affected Access Grant (if present). */ access_grant_key?: string | undefined; /** The new start time for the access grant. */ starts_at?: string | undefined; /** The new end time for the access grant. */ ends_at?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.could_not_create_requested_access_methods'; /** Description of why the access methods could not be created. */ error_message: string; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.issued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.revoked'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.card_encoding_required'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.deleted'; /** 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. */ failed_to_delete_access_code_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.reissued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.delay_in_issuing'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.failed_to_issue'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.disconnected'; /** Errors associated with the access control system. */ acs_system_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access control system. */ acs_system_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.issued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.reissued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.invalidated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access group. */ acs_access_group_id: string; event_type: 'acs_access_group.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected client session. */ client_session_id: string; event_type: 'client_session.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.connected'; /** ID of the Connect Webview associated with the event. */ connect_webview_id?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.created'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.successful_login'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.deleted'; /** */ connected_account_type?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync_after_reconnection'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.reauthorization_requested'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_succeeded'; /** ID of the connected account associated with the event. */ connected_account_id: string; /** Custom metadata of the connected account; present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** The customer key associated with this connect webview, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.converted_to_unmanaged'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.tampered'; /** Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state. */ is_detached_from_mounting_plate?: boolean | undefined; /** Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state. */ is_casing_tampered_with?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.low_battery'; /** Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. * @deprecated Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery.*/ battery_level: number; /** Number in the range 0 to 1.0 indicating the affected device's own battery level, when known. */ device_battery_level?: number | undefined; /** 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. */ accessory_keypad_battery_level?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.battery_status_changed'; /** Battery status of the affected device, calculated from the numeric `battery_level` value. */ battery_status: 'critical' | 'low' | 'good' | 'full'; /** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */ battery_level: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.deleted'; /** 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. */ device_name?: (string | null) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_no_longer_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_activated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_became_flaky'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_stabilized'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required.resolved'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'noise_sensor.noise_threshold_triggered'; /** Detected noise level in decibels. */ noise_level_decibels?: number | undefined; /** Detected noise level in Noiseaware Noise Risk Score (NRS). */ noise_level_nrs?: number | undefined; /** ID of the noise threshold that was triggered. */ noise_threshold_id?: string | undefined; /** Name of the noise threshold that was triggered. */ noise_threshold_name?: string | undefined; /** Metadata from Noiseaware. */ noiseaware_metadata?: { [x: string]: unknown; } | undefined; /** Metadata from Minut. */ minut_metadata?: { [x: string]: unknown; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.locked'; /** ID of the access code that was used to lock the device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the lock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the lock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the lock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the lock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.unlocked'; /** ID of the access code that was used to unlock the affected device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the unlock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the unlock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the unlock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the unlock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.access_denied'; /** ID of the access code that was used in the unlock attempts. */ access_code_id?: string | undefined; /** ID of the user identity associated with the access-denied event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the access-denied event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the access-denied event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the access-denied event. */ acs_entrance_id?: string | undefined; /** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */ reason?: { /** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */ reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error' | 'connection_error'; /** Human-readable explanation of why access was denied. */ message: string; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.jammed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_opened'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_closed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.climate_preset_activated'; /** ID of the thermostat schedule that prompted the affected climate preset to be activated. */ thermostat_schedule_id: string | null; /** Key of the climate preset that was activated. */ climate_preset_key: string; /** Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat. */ is_fallback_climate_preset: boolean; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat_schedule.climate_preset_activation_may_fail'; /** ID of the thermostat schedule whose climate preset activation may fail. */ thermostat_schedule_id: string; /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_starts_at: string; /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_ends_at: string; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_no_longer_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_reached_set_point'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_celsius?: number | undefined; /** Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_changed'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_changed'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_reached_set_point'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; /** Desired water temperature, in °C, defined by the heating set point of the affected pool or spa. */ desired_temperature_celsius: number; /** Desired water temperature, in °F, defined by the heating set point of the affected pool or spa. */ desired_temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** New heating mode of the affected pool or spa. Present only if the mode changed. */ controller_mode?: ('heat' | 'off') | undefined; /** New heating set point, in °C, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_celsius?: number | undefined; /** New heating set point, in °F, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.name_changed'; /** The new name of the affected device. */ device_name: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'camera.activated'; /** Whether motion detection activated the camera, if known. */ is_motion_detected?: boolean | undefined; /** Sub-type of motion detected, if available. */ motion_sub_type?: ('human' | 'vehicle' | 'package' | 'other') | undefined; /** URL to a thumbnail image captured at the time of activation. */ image_url?: string | undefined; /** URL to a short video clip captured at the time of activation. */ video_url?: string | undefined; /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.doorbell_rang'; /** URL to a thumbnail image captured at the time the doorbell was pressed. */ image_url?: string | undefined; /** URL to a short video clip captured at the time the doorbell was pressed. */ video_url?: string | undefined; /** 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. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected enrollment automation. */ enrollment_automation_id: string; event_type: 'enrollment_automation.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected phone device. */ device_id: string; /** Custom metadata of the device; present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'phone.deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.device_membership_changed'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices currently attached to the space. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.created'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was created. */ device_ids: string[]; /** IDs of all ACS entrances attached to the space when it was created. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.deleted'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was deleted. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space when it was deleted. */ acs_entrance_ids: string[]; }) | undefined; message?: string | undefined; }; maxDuration: undefined; }; '/events/list': { route: '/events/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list events. */ customer_key?: string | undefined; /** Offset for the events that you want to list. */ unstable_offset?: number | undefined; /** 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. */ since?: string | undefined; /** 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. */ between?: string[] | undefined; /** ID of the device for which you want to list events. */ device_id?: string | undefined; /** IDs of the devices for which you want to list events. */ device_ids?: string[] | undefined; /** ID of the access system for which you want to list events. */ acs_system_id?: string | undefined; /** IDs of the access systems for which you want to list events. */ acs_system_ids?: string[] | undefined; /** ID of the access code for which you want to list events. */ access_code_id?: string | undefined; /** IDs of the access codes for which you want to list events. */ access_code_ids?: string[] | undefined; /** Type of the events that you want to list. */ event_type?: ('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') | undefined; /** Types of the events that you want to list. */ event_types?: ('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')[] | undefined; /** ID of the connected account for which you want to list events. */ connected_account_id?: string | undefined; /** ID of the Connect Webview for which you want to list events. */ connect_webview_id?: string | undefined; /** Numerical limit on the number of events to return. */ limit?: number; /** IDs of the events that you want to list. */ event_ids?: string[] | undefined; /** ID of the ACS entrance for which you want to list events. */ acs_entrance_id?: string | undefined; /** ID of the ACS user for which you want to list events. */ acs_user_id?: string | undefined; /** ID of the user identity for which you want to list events. */ user_identity_id?: string | undefined; /** ID of the access grant for which you want to list events. */ access_grant_id?: string | undefined; /** IDs of the access grants for which you want to list events. */ access_grant_ids?: string[] | undefined; /** ID of the access method for which you want to list events. */ access_method_id?: string | undefined; /** IDs of the access methods for which you want to list events. */ access_method_ids?: string[] | undefined; /** ID of the ACS credential for which you want to list events. */ acs_credential_id?: string | undefined; /** ID of the space for which you want to list events. */ space_id?: string | undefined; /** IDs of the spaces for which you want to list events. */ space_ids?: string[] | undefined; /** ID of the ACS access group for which you want to list events. */ acs_access_group_id?: string | undefined; /** ID of the ACS encoder for which you want to list events. */ acs_encoder_id?: string | undefined; }; formData: {}; jsonResponse: { events: ({ /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.changed'; /** List of properties that changed on the access code. */ changed_properties?: { /** Name of the property that changed (e.g. `code`). */ property: string; /** Previous value of the property, or null if not set. */ from: string | null; /** New value of the property, or null if cleared. */ to: string | null; }[] | undefined; /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */ change_reason?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.name_changed'; /** Previous access code name configuration. */ from: { /** Previous name of the access code. */ name: string | null; }; /** New access code name configuration. */ to: { /** New name of the access code. */ name: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.code_changed'; /** Previous pin code configuration. */ from: { /** Previous pin code. */ code: string | null; }; /** New pin code configuration. */ to: { /** New pin code. */ code: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.time_frame_changed'; /** Previous time frame configuration. */ from: { /** Previous start time. */ starts_at: string | null; /** Previous end time. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time. */ starts_at: string | null; /** New end time. */ ends_at: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.mutations_requested'; /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */ requested_mutations: { /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */ mutation_code: 'updating_name' | 'updating_code' | 'updating_time_frame' | 'deleting' | 'creating' | 'deferring_creation'; /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ from?: { [x: string]: unknown; } | undefined; /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ to?: { [x: string]: unknown; } | undefined; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.scheduled_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.set_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.removed_from_device'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_setting_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_set_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.issued'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_issuing'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_issue'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_update'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_delete'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted'; /** Code for the affected access code. */ code: string | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_removing_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_remove_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.modified_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.backup_access_code_pulled'; /** ID of the backup access code that was pulled from the pool. */ backup_access_code_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.failed_to_convert_to_managed'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_all_doors'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_door'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_to_door_lost'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_times_changed'; /** Key of the affected Access Grant (if present). */ access_grant_key?: string | undefined; /** The new start time for the access grant. */ starts_at?: string | undefined; /** The new end time for the access grant. */ ends_at?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.could_not_create_requested_access_methods'; /** Description of why the access methods could not be created. */ error_message: string; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.issued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.revoked'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.card_encoding_required'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.deleted'; /** 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. */ failed_to_delete_access_code_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.reissued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.delay_in_issuing'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.failed_to_issue'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.disconnected'; /** Errors associated with the access control system. */ acs_system_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access control system. */ acs_system_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.issued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.reissued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.invalidated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access group. */ acs_access_group_id: string; event_type: 'acs_access_group.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected client session. */ client_session_id: string; event_type: 'client_session.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.connected'; /** ID of the Connect Webview associated with the event. */ connect_webview_id?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.created'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.successful_login'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.deleted'; /** */ connected_account_type?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync_after_reconnection'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.reauthorization_requested'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_succeeded'; /** ID of the connected account associated with the event. */ connected_account_id: string; /** Custom metadata of the connected account; present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** The customer key associated with this connect webview, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.converted_to_unmanaged'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.tampered'; /** Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state. */ is_detached_from_mounting_plate?: boolean | undefined; /** Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state. */ is_casing_tampered_with?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.low_battery'; /** Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. * @deprecated Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery.*/ battery_level: number; /** Number in the range 0 to 1.0 indicating the affected device's own battery level, when known. */ device_battery_level?: number | undefined; /** 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. */ accessory_keypad_battery_level?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.battery_status_changed'; /** Battery status of the affected device, calculated from the numeric `battery_level` value. */ battery_status: 'critical' | 'low' | 'good' | 'full'; /** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */ battery_level: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.deleted'; /** 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. */ device_name?: (string | null) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_no_longer_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_activated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_became_flaky'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_stabilized'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required.resolved'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'noise_sensor.noise_threshold_triggered'; /** Detected noise level in decibels. */ noise_level_decibels?: number | undefined; /** Detected noise level in Noiseaware Noise Risk Score (NRS). */ noise_level_nrs?: number | undefined; /** ID of the noise threshold that was triggered. */ noise_threshold_id?: string | undefined; /** Name of the noise threshold that was triggered. */ noise_threshold_name?: string | undefined; /** Metadata from Noiseaware. */ noiseaware_metadata?: { [x: string]: unknown; } | undefined; /** Metadata from Minut. */ minut_metadata?: { [x: string]: unknown; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.locked'; /** ID of the access code that was used to lock the device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the lock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the lock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the lock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the lock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.unlocked'; /** ID of the access code that was used to unlock the affected device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the unlock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the unlock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the unlock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the unlock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.access_denied'; /** ID of the access code that was used in the unlock attempts. */ access_code_id?: string | undefined; /** ID of the user identity associated with the access-denied event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the access-denied event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the access-denied event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the access-denied event. */ acs_entrance_id?: string | undefined; /** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */ reason?: { /** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */ reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error' | 'connection_error'; /** Human-readable explanation of why access was denied. */ message: string; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.jammed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_opened'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_closed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.climate_preset_activated'; /** ID of the thermostat schedule that prompted the affected climate preset to be activated. */ thermostat_schedule_id: string | null; /** Key of the climate preset that was activated. */ climate_preset_key: string; /** Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat. */ is_fallback_climate_preset: boolean; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat_schedule.climate_preset_activation_may_fail'; /** ID of the thermostat schedule whose climate preset activation may fail. */ thermostat_schedule_id: string; /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_starts_at: string; /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_ends_at: string; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_no_longer_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_reached_set_point'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_celsius?: number | undefined; /** Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_changed'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_changed'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_reached_set_point'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; /** Desired water temperature, in °C, defined by the heating set point of the affected pool or spa. */ desired_temperature_celsius: number; /** Desired water temperature, in °F, defined by the heating set point of the affected pool or spa. */ desired_temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** New heating mode of the affected pool or spa. Present only if the mode changed. */ controller_mode?: ('heat' | 'off') | undefined; /** New heating set point, in °C, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_celsius?: number | undefined; /** New heating set point, in °F, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.name_changed'; /** The new name of the affected device. */ device_name: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'camera.activated'; /** Whether motion detection activated the camera, if known. */ is_motion_detected?: boolean | undefined; /** Sub-type of motion detected, if available. */ motion_sub_type?: ('human' | 'vehicle' | 'package' | 'other') | undefined; /** URL to a thumbnail image captured at the time of activation. */ image_url?: string | undefined; /** URL to a short video clip captured at the time of activation. */ video_url?: string | undefined; /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.doorbell_rang'; /** URL to a thumbnail image captured at the time the doorbell was pressed. */ image_url?: string | undefined; /** URL to a short video clip captured at the time the doorbell was pressed. */ video_url?: string | undefined; /** 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. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected enrollment automation. */ enrollment_automation_id: string; event_type: 'enrollment_automation.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected phone device. */ device_id: string; /** Custom metadata of the device; present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'phone.deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.device_membership_changed'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices currently attached to the space. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.created'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was created. */ device_ids: string[]; /** IDs of all ACS entrances attached to the space when it was created. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.deleted'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was deleted. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space when it was deleted. */ acs_entrance_ids: string[]; })[]; }; maxDuration: undefined; }; '/instant_keys/delete': { route: '/instant_keys/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the Instant Key that you want to delete. */ instant_key_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/instant_keys/get': { route: '/instant_keys/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the instant key to get. */ instant_key_id?: string | undefined; /** URL of the instant key to get. */ instant_key_url?: string | undefined; }; formData: {}; jsonResponse: { /** 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. There’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. */ instant_key: { /** ID of the Instant Key. */ instant_key_id: string; /** ID of the workspace that contains the Instant Key. */ workspace_id: string; /** Date and time at which the Instant Key was created. */ created_at: string; /** 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. */ instant_key_url: string; /** ID of the client session associated with the Instant Key. */ client_session_id: string; /** ID of the user identity associated with the Instant Key. */ user_identity_id: string; /** Date and time at which the Instant Key expires. */ expires_at: string; /** ID of the customization profile associated with the Instant Key. */ customization_profile_id?: string | undefined; /** Customization applied to the Instant Key UI. */ customization?: { /** Primary color used in the Instant Key UI. */ primary_color?: string | undefined; /** Secondary color used in the Instant Key UI. */ secondary_color?: string | undefined; /** URL of the logo displayed on the Instant Key. */ logo_url?: string | undefined; /** 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. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; } | undefined; }; }; maxDuration: undefined; }; '/instant_keys/list': { route: '/instant_keys/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity by which you want to filter the list of Instant Keys. */ user_identity_id?: string | undefined; }; formData: {}; jsonResponse: { instant_keys: { /** ID of the Instant Key. */ instant_key_id: string; /** ID of the workspace that contains the Instant Key. */ workspace_id: string; /** Date and time at which the Instant Key was created. */ created_at: string; /** 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. */ instant_key_url: string; /** ID of the client session associated with the Instant Key. */ client_session_id: string; /** ID of the user identity associated with the Instant Key. */ user_identity_id: string; /** Date and time at which the Instant Key expires. */ expires_at: string; /** ID of the customization profile associated with the Instant Key. */ customization_profile_id?: string | undefined; /** Customization applied to the Instant Key UI. */ customization?: { /** Primary color used in the Instant Key UI. */ primary_color?: string | undefined; /** Secondary color used in the Instant Key UI. */ secondary_color?: string | undefined; /** URL of the logo displayed on the Instant Key. */ logo_url?: string | undefined; /** 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. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; } | undefined; }[]; }; maxDuration: undefined; }; '/locks/configure_auto_lock': { route: '/locks/configure_auto_lock'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the lock for which you want to configure the auto-lock. */ device_id: string; /** Whether to enable or disable auto-lock. */ auto_lock_enabled: boolean; /** Delay in seconds before the lock automatically locks. Required when enabling auto-lock. Must be between 1 and 60. */ auto_lock_delay_seconds?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/locks/get': { route: '/locks/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the lock that you want to get. */ device_id?: string | undefined; /** Name of the lock that you want to get. */ name?: string | undefined; }; formData: {}; jsonResponse: { /** Represents a [device](https://www.seam.co/docs/core-concepts/devices) that has been connected to Seam. */ lock: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }; /** Represents a [device](https://www.seam.co/docs/core-concepts/devices) that has been connected to Seam. */ device: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }; }; maxDuration: undefined; }; '/locks/list': { route: '/locks/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list devices. */ customer_key?: string | undefined; /** ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined; /** ID of the Connect Webview for which you want to list devices. */ connect_webview_id?: string | undefined; /** Device type of the locks that you want to list. */ device_type?: ('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') | undefined; /** Device types of the locks that you want to list. */ device_types?: ('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')[] | undefined; /** Manufacturer of the locks that you want to list. */ manufacturer?: ('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') | undefined; }; formData: {}; jsonResponse: { locks: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/locks/lock_door': { route: '/locks/lock_door'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the lock that you want to lock. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/locks/simulate/keypad_code_entry': { route: '/locks/simulate/keypad_code_entry'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for which you want to simulate a keypad code entry. */ device_id: string; /** Code that you want to simulate entering on a keypad. */ code: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/locks/simulate/manual_lock_via_keypad': { route: '/locks/simulate/manual_lock_via_keypad'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for which you want to simulate a manual lock action using a keypad. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/locks/unlock_door': { route: '/locks/unlock_door'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the lock that you want to unlock. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/media/get': { route: '/media/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the media that you want to get. */ media_id: string; /** 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. */ format?: 'json' | 'redirect'; }; formData: {}; jsonResponse: { /** 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. */ media: { /** ID of the media. */ media_id: string; /** ID of the workspace that contains the media. */ workspace_id: string; /** ID of the device that captured the media. */ device_id: string | null; /** ID of the event that the media belongs to. */ event_id: string | null; /** Type of the media: a video clip or a still image. */ media_type: 'video' | 'image'; /** MIME type of the media, such as `video/mp4` or `image/jpeg`. */ content_type: string | null; /** 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. */ video_codec?: ('h264' | 'hevc') | undefined; /** 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. */ status: 'pending' | 'available' | 'unavailable' | 'failed'; /** 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. */ url: string | null; /** Date and time at which the media stops being available. Null when Seam does not know when the media expires. */ expires_at: string | null; /** Date and time at which the media was created. */ created_at: string; }; }; maxDuration: undefined; }; '/noise_sensors/list': { route: '/noise_sensors/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list devices. */ customer_key?: string | undefined; /** ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined; /** ID of the Connect Webview for which you want to list devices. */ connect_webview_id?: string | undefined; /** Device type of the noise sensors that you want to list. */ device_type?: ('noiseaware_activity_zone' | 'minut_sensor') | undefined; /** Device types of the noise sensors that you want to list. */ device_types?: ('noiseaware_activity_zone' | 'minut_sensor')[] | undefined; /** Manufacturers of the noise sensors that you want to list. */ manufacturer?: ('minut' | 'noiseaware' | 'alertify') | undefined; }; formData: {}; jsonResponse: { noise_sensors: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/noise_sensors/noise_thresholds/create': { route: '/noise_sensors/noise_thresholds/create'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for which you want to create a noise threshold. */ device_id: string; /** Name of the new noise threshold. */ name?: string | undefined; /** Time at which the new noise threshold should become active daily. */ starts_daily_at: string; /** Time at which the new noise threshold should become inactive daily. */ ends_daily_at: string; /** Noise level in decibels for the new noise threshold. */ noise_threshold_decibels?: number | undefined; /** 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). */ noise_threshold_nrs?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; /** 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. */ noise_threshold: { /** Unique identifier for the noise threshold. */ noise_threshold_id: string; /** Unique identifier for the device that contains the noise threshold. */ device_id: string; /** Name of the noise threshold. */ name: string; /** 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). */ noise_threshold_nrs?: number | undefined; /** Time at which the noise threshold should become active daily. */ starts_daily_at: string; /** Time at which the noise threshold should become inactive daily. */ ends_daily_at: string; /** Noise level in decibels for the noise threshold. */ noise_threshold_decibels: number; }; }; maxDuration: undefined; }; '/noise_sensors/noise_thresholds/delete': { route: '/noise_sensors/noise_thresholds/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the noise threshold that you want to delete. */ noise_threshold_id: string; /** ID of the device that contains the noise threshold that you want to delete. */ device_id: string; }; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/noise_sensors/noise_thresholds/get': { route: '/noise_sensors/noise_thresholds/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the noise threshold that you want to get. */ noise_threshold_id: string; }; formData: {}; jsonResponse: { /** 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. */ noise_threshold: { /** Unique identifier for the noise threshold. */ noise_threshold_id: string; /** Unique identifier for the device that contains the noise threshold. */ device_id: string; /** Name of the noise threshold. */ name: string; /** 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). */ noise_threshold_nrs?: number | undefined; /** Time at which the noise threshold should become active daily. */ starts_daily_at: string; /** Time at which the noise threshold should become inactive daily. */ ends_daily_at: string; /** Noise level in decibels for the noise threshold. */ noise_threshold_decibels: number; }; }; maxDuration: undefined; }; '/noise_sensors/noise_thresholds/list': { route: '/noise_sensors/noise_thresholds/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the device for which you want to list noise thresholds. */ device_id: string; /** 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`. */ is_programmed?: boolean | undefined; }; formData: {}; jsonResponse: { noise_thresholds: { /** Unique identifier for the noise threshold. */ noise_threshold_id: string; /** Unique identifier for the device that contains the noise threshold. */ device_id: string; /** Name of the noise threshold. */ name: string; /** 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). */ noise_threshold_nrs?: number | undefined; /** Time at which the noise threshold should become active daily. */ starts_daily_at: string; /** Time at which the noise threshold should become inactive daily. */ ends_daily_at: string; /** Noise level in decibels for the noise threshold. */ noise_threshold_decibels: number; }[]; }; maxDuration: undefined; }; '/noise_sensors/noise_thresholds/update': { route: '/noise_sensors/noise_thresholds/update'; method: 'PATCH' | 'POST' | 'PUT'; queryParams: {}; jsonBody: { /** ID of the noise threshold that you want to update. */ noise_threshold_id: string; /** ID of the device that contains the noise threshold that you want to update. */ device_id: string; /** Name of the noise threshold that you want to update. */ name?: string | undefined; /** Time at which the noise threshold should become active daily. */ starts_daily_at?: string | undefined; /** Time at which the noise threshold should become inactive daily. */ ends_daily_at?: string | undefined; /** Noise level in decibels for the noise threshold. */ noise_threshold_decibels?: number | undefined; /** 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). */ noise_threshold_nrs?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/noise_sensors/simulate/trigger_noise_threshold': { route: '/noise_sensors/simulate/trigger_noise_threshold'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for which you want to simulate the triggering of a noise threshold. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/phones/deactivate': { route: '/phones/deactivate'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Device ID of the phone that you want to deactivate. */ device_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/phones/get': { route: '/phones/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Device ID of the phone that you want to get. */ device_id: string; }; formData: {}; jsonResponse: { /** Represents an app user's mobile phone. */ phone: { /** ID of the phone. */ device_id: string; /** Optional nickname to describe the phone, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** ID of the workspace that contains the phone. */ workspace_id: string; /** Date and time at which the phone was created. */ created_at: string; /** Optional [custom metadata](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Type of the phone device, such as `ios_phone` or `android_phone`. */ device_type: 'ios_phone' | 'android_phone'; /** Properties of the phone. */ properties: { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: { /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: { /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined; }; }; }; maxDuration: undefined; }; '/phones/list': { route: '/phones/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity that represents the owner by which you want to filter the list of returned phones. */ owner_user_identity_id?: string | undefined; /** 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. */ acs_credential_id?: string | undefined; }; formData: {}; jsonResponse: { phones: { /** ID of the phone. */ device_id: string; /** Optional nickname to describe the phone, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** ID of the workspace that contains the phone. */ workspace_id: string; /** Date and time at which the phone was created. */ created_at: string; /** Optional [custom metadata](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Type of the phone device, such as `ios_phone` or `android_phone`. */ device_type: 'ios_phone' | 'android_phone'; /** Properties of the phone. */ properties: { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: { /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: { /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined; }; }[]; }; maxDuration: undefined; }; '/phones/simulate/create_sandbox_phone': { route: '/phones/simulate/create_sandbox_phone'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the custom SDK installation that you want to use for the simulated phone. */ custom_sdk_installation_id?: string | undefined; /** ID of the user identity that you want to associate with the simulated phone. */ user_identity_id: string; /** Metadata that you want to associate with the simulated phone. */ phone_metadata?: { /** Mobile operating system that you want to use for the simulated phone. */ operating_system?: 'android' | 'ios'; /** Mobile operating system version that you want to use for the simulated phone. */ os_version?: string; /** Manufacturer that you want to use for the simulated phone. */ device_manufacturer?: string; /** Device model that you want to use for the simulated phone. */ device_model?: string; }; /** ASSA ABLOY metadata that you want to associate with the simulated phone. */ assa_abloy_metadata?: { /** Indicates whether the simulated phone should have Bluetooth low energy (BLE) capability. */ ble_capability?: boolean; /** Indicates whether the simulated phone should have host card emulation (HCE) capability. */ hce_capability?: boolean; /** Indicates whether the simulated phone should have near-field communication (NFC) capability. */ nfc_capability?: boolean; /** Application version that you want to use for the simulated phone. */ application_version?: string; /** SEOS applet version that you want to use for the simulated phone. */ seos_applet_version?: string; /** ID of the SEOS trusted service manager (TSM) endpoint that you want to use for the simulated phone. */ seos_tsm_endpoint_id?: number; }; }; commonParams: {}; formData: {}; jsonResponse: { /** Represents an app user's mobile phone. */ phone: { /** ID of the phone. */ device_id: string; /** Optional nickname to describe the phone, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** ID of the workspace that contains the phone. */ workspace_id: string; /** Date and time at which the phone was created. */ created_at: string; /** Optional [custom metadata](https://www.seam.co/docs/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Type of the phone device, such as `ios_phone` or `android_phone`. */ device_type: 'ios_phone' | 'android_phone'; /** Properties of the phone. */ properties: { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: { /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: { /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined; }; }; }; maxDuration: undefined; }; '/pools/heat': { route: '/pools/heat'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for the pool or spa water that you want to heat. */ device_id: string; /** Target water temperature in °C. Provide exactly one of `heating_set_point_celsius` and `heating_set_point_fahrenheit`. */ heating_set_point_celsius?: number | undefined; /** Target water temperature in °F. Provide exactly one of `heating_set_point_celsius` and `heating_set_point_fahrenheit`. */ heating_set_point_fahrenheit?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/pools/list': { route: '/pools/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list devices. */ customer_key?: string | undefined; /** ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined; /** ID of the Connect Webview for which you want to list devices. */ connect_webview_id?: string | undefined; /** Device type by which you want to filter pool devices. */ device_type?: ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool') | undefined; /** Array of device types by which you want to filter pool devices. */ device_types?: ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool')[] | undefined; }; formData: {}; jsonResponse: { devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/pools/turn_off': { route: '/pools/turn_off'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the device for the pool or spa water whose temperature control you want to turn off. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/seam/bridge/v1/bridge_client_sessions/create': { route: '/seam/bridge/v1/bridge_client_sessions/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Name of the Seam Bridge client that you want to create. */ bridge_client_name: string; /** Time zone for the Seam Bridge client that you want to create. */ bridge_client_time_zone: string; /** Identifier key of the client machine for the Seam Bridge client that you want to create. */ bridge_client_machine_identifier_key: string; }; commonParams: {}; formData: {}; jsonResponse: { /** Represents a [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session. */ bridge_client_session: { /** Date and time at which the Seam Bridge client session was created. */ created_at: string; /** ID of the Seam Bridge client session. */ bridge_client_session_id: string; /** Client session token associated with the Seam Bridge client session. */ bridge_client_session_token: string; /** Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace. */ pairing_code: string; /** Date and time at which the pairing code expires. */ pairing_code_expires_at: string; /** Tailscale hostname for Seam Bridge. */ tailscale_hostname: string; /** Tailscale authorization key for Seam Bridge. */ tailscale_auth_key: string | null; /** Name of the Seam Bridge client. */ bridge_client_name: string; /** Time zone for the Seam Bridge client. */ bridge_client_time_zone: string; /** Identifier key of the client machine for the Seam Bridge client. */ bridge_client_machine_identifier_key: string; /** Errors associated with the Seam Bridge client session. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_lan_unreachable'; /** Indicates whether Seam can reach the Tailscale proxy. */ is_tailscale_proxy_reachable: boolean | null; /** Indicates whether the Tailscale proxy's SOCKS server is healthy. */ is_tailscale_proxy_socks_server_healthy: boolean | null; /** Indicates whether the Tailscale proxy can reach the Tailscale network. */ can_tailscale_proxy_reach_tailscale_network: boolean | null; /** Indicates whether the Tailscale proxy can reach Seam Bridge. */ can_tailscale_proxy_reach_bridge: boolean | null; /** Indicates whether Seam Bridge's SOCKS server is healthy. */ is_bridge_socks_server_healthy: boolean | null; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_communication_from_bridge'; })[]; /** Telemetry token for the Seam Bridge client session. */ telemetry_token: string | null; /** Date and time at which the telemetry token for the Seam Bridge client session expires. */ telemetry_token_expires_at: string | null; /** Telemetry URL for the Seam Bridge client session. */ telemetry_url: string | null; }; }; maxDuration: undefined; }; '/seam/bridge/v1/bridge_client_sessions/get': { route: '/seam/bridge/v1/bridge_client_sessions/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** Represents a [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session. */ bridge_client_session: { /** Date and time at which the Seam Bridge client session was created. */ created_at: string; /** ID of the Seam Bridge client session. */ bridge_client_session_id: string; /** Client session token associated with the Seam Bridge client session. */ bridge_client_session_token: string; /** Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace. */ pairing_code: string; /** Date and time at which the pairing code expires. */ pairing_code_expires_at: string; /** Tailscale hostname for Seam Bridge. */ tailscale_hostname: string; /** Tailscale authorization key for Seam Bridge. */ tailscale_auth_key: string | null; /** Name of the Seam Bridge client. */ bridge_client_name: string; /** Time zone for the Seam Bridge client. */ bridge_client_time_zone: string; /** Identifier key of the client machine for the Seam Bridge client. */ bridge_client_machine_identifier_key: string; /** Errors associated with the Seam Bridge client session. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_lan_unreachable'; /** Indicates whether Seam can reach the Tailscale proxy. */ is_tailscale_proxy_reachable: boolean | null; /** Indicates whether the Tailscale proxy's SOCKS server is healthy. */ is_tailscale_proxy_socks_server_healthy: boolean | null; /** Indicates whether the Tailscale proxy can reach the Tailscale network. */ can_tailscale_proxy_reach_tailscale_network: boolean | null; /** Indicates whether the Tailscale proxy can reach Seam Bridge. */ can_tailscale_proxy_reach_bridge: boolean | null; /** Indicates whether Seam Bridge's SOCKS server is healthy. */ is_bridge_socks_server_healthy: boolean | null; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_communication_from_bridge'; })[]; /** Telemetry token for the Seam Bridge client session. */ telemetry_token: string | null; /** Date and time at which the telemetry token for the Seam Bridge client session expires. */ telemetry_token_expires_at: string | null; /** Telemetry URL for the Seam Bridge client session. */ telemetry_url: string | null; }; }; maxDuration: undefined; }; '/seam/bridge/v1/bridge_client_sessions/refresh_tailscale_auth_key': { route: '/seam/bridge/v1/bridge_client_sessions/refresh_tailscale_auth_key'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** Represents a [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session. */ bridge_client_session: { /** Date and time at which the Seam Bridge client session was created. */ created_at: string; /** ID of the Seam Bridge client session. */ bridge_client_session_id: string; /** Client session token associated with the Seam Bridge client session. */ bridge_client_session_token: string; /** Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace. */ pairing_code: string; /** Date and time at which the pairing code expires. */ pairing_code_expires_at: string; /** Tailscale hostname for Seam Bridge. */ tailscale_hostname: string; /** Tailscale authorization key for Seam Bridge. */ tailscale_auth_key: string | null; /** Name of the Seam Bridge client. */ bridge_client_name: string; /** Time zone for the Seam Bridge client. */ bridge_client_time_zone: string; /** Identifier key of the client machine for the Seam Bridge client. */ bridge_client_machine_identifier_key: string; /** Errors associated with the Seam Bridge client session. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_lan_unreachable'; /** Indicates whether Seam can reach the Tailscale proxy. */ is_tailscale_proxy_reachable: boolean | null; /** Indicates whether the Tailscale proxy's SOCKS server is healthy. */ is_tailscale_proxy_socks_server_healthy: boolean | null; /** Indicates whether the Tailscale proxy can reach the Tailscale network. */ can_tailscale_proxy_reach_tailscale_network: boolean | null; /** Indicates whether the Tailscale proxy can reach Seam Bridge. */ can_tailscale_proxy_reach_bridge: boolean | null; /** Indicates whether Seam Bridge's SOCKS server is healthy. */ is_bridge_socks_server_healthy: boolean | null; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_communication_from_bridge'; })[]; /** Telemetry token for the Seam Bridge client session. */ telemetry_token: string | null; /** Date and time at which the telemetry token for the Seam Bridge client session expires. */ telemetry_token_expires_at: string | null; /** Telemetry URL for the Seam Bridge client session. */ telemetry_url: string | null; }; }; maxDuration: undefined; }; '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token': { route: '/seam/bridge/v1/bridge_client_sessions/refresh_telemetry_token'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** Represents a [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session. */ bridge_client_session: { /** Date and time at which the Seam Bridge client session was created. */ created_at: string; /** ID of the Seam Bridge client session. */ bridge_client_session_id: string; /** Client session token associated with the Seam Bridge client session. */ bridge_client_session_token: string; /** Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace. */ pairing_code: string; /** Date and time at which the pairing code expires. */ pairing_code_expires_at: string; /** Tailscale hostname for Seam Bridge. */ tailscale_hostname: string; /** Tailscale authorization key for Seam Bridge. */ tailscale_auth_key: string | null; /** Name of the Seam Bridge client. */ bridge_client_name: string; /** Time zone for the Seam Bridge client. */ bridge_client_time_zone: string; /** Identifier key of the client machine for the Seam Bridge client. */ bridge_client_machine_identifier_key: string; /** Errors associated with the Seam Bridge client session. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_lan_unreachable'; /** Indicates whether Seam can reach the Tailscale proxy. */ is_tailscale_proxy_reachable: boolean | null; /** Indicates whether the Tailscale proxy's SOCKS server is healthy. */ is_tailscale_proxy_socks_server_healthy: boolean | null; /** Indicates whether the Tailscale proxy can reach the Tailscale network. */ can_tailscale_proxy_reach_tailscale_network: boolean | null; /** Indicates whether the Tailscale proxy can reach Seam Bridge. */ can_tailscale_proxy_reach_bridge: boolean | null; /** Indicates whether Seam Bridge's SOCKS server is healthy. */ is_bridge_socks_server_healthy: boolean | null; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_communication_from_bridge'; })[]; /** Telemetry token for the Seam Bridge client session. */ telemetry_token: string | null; /** Date and time at which the telemetry token for the Seam Bridge client session expires. */ telemetry_token_expires_at: string | null; /** Telemetry URL for the Seam Bridge client session. */ telemetry_url: string | null; }; }; maxDuration: undefined; }; '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code': { route: '/seam/bridge/v1/bridge_client_sessions/regenerate_pairing_code'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** Represents a [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge) client session. */ bridge_client_session: { /** Date and time at which the Seam Bridge client session was created. */ created_at: string; /** ID of the Seam Bridge client session. */ bridge_client_session_id: string; /** Client session token associated with the Seam Bridge client session. */ bridge_client_session_token: string; /** Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace. */ pairing_code: string; /** Date and time at which the pairing code expires. */ pairing_code_expires_at: string; /** Tailscale hostname for Seam Bridge. */ tailscale_hostname: string; /** Tailscale authorization key for Seam Bridge. */ tailscale_auth_key: string | null; /** Name of the Seam Bridge client. */ bridge_client_name: string; /** Time zone for the Seam Bridge client. */ bridge_client_time_zone: string; /** Identifier key of the client machine for the Seam Bridge client. */ bridge_client_machine_identifier_key: string; /** Errors associated with the Seam Bridge client session. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_lan_unreachable'; /** Indicates whether Seam can reach the Tailscale proxy. */ is_tailscale_proxy_reachable: boolean | null; /** Indicates whether the Tailscale proxy's SOCKS server is healthy. */ is_tailscale_proxy_socks_server_healthy: boolean | null; /** Indicates whether the Tailscale proxy can reach the Tailscale network. */ can_tailscale_proxy_reach_tailscale_network: boolean | null; /** Indicates whether the Tailscale proxy can reach Seam Bridge. */ can_tailscale_proxy_reach_bridge: boolean | null; /** Indicates whether Seam Bridge's SOCKS server is healthy. */ is_bridge_socks_server_healthy: boolean | null; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_communication_from_bridge'; })[]; /** Telemetry token for the Seam Bridge client session. */ telemetry_token: string | null; /** Date and time at which the telemetry token for the Seam Bridge client session expires. */ telemetry_token_expires_at: string | null; /** Telemetry URL for the Seam Bridge client session. */ telemetry_url: string | null; }; }; maxDuration: undefined; }; '/seam/bridge/v1/bridge_client_sessions/report_status': { route: '/seam/bridge/v1/bridge_client_sessions/report_status'; method: 'POST'; queryParams: {}; jsonBody: { /** Indicates whether Tailscale is connected. */ is_tailscale_connected: boolean | null; /** Tailscale IPv4 address. */ tailscale_ip_v4: string | null; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/bridge/v1/bridge_connected_systems/list': { route: '/seam/bridge/v1/bridge_connected_systems/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { bridge_connected_systems: { /** ID of Seam Bridge connected to the access system. */ bridge_id: string; /** Date and time at which Seam Bridge was created. */ bridge_created_at: string; /** ID of the connected account associated with Seam Bridge. */ connected_account_id: string; /** Date and time at which the connected account associated with Seam Bridge was created. */ connected_account_created_at: string; /** ID of the [access system](https://www.seam.co/docs/low-level-apis/access-systems) associated with Seam Bridge. */ acs_system_id: string; /** Display name for the [access system](https://www.seam.co/docs/low-level-apis/access-systems) associated with Seam Bridge. */ acs_system_display_name: string; /** ID of the workspace with which Seam Bridge is paired. */ workspace_id: string; /** Display name for the [workspace](https://www.seam.co/docs/core-concepts/workspaces) with which Seam Bridge is paired. */ workspace_display_name: string; }[]; }; maxDuration: undefined; }; '/seam/connect_webview/v1/get_current_pane': { route: '/seam/connect_webview/v1/get_current_pane'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { connect_webview_id: string; }; formData: {}; jsonResponse: { pane?: any; }; maxDuration: undefined; }; '/seam/connect_webview/v1/reset': { route: '/seam/connect_webview/v1/reset'; method: 'POST'; queryParams: {}; jsonBody: { connect_webview_id: string; }; commonParams: {}; formData: {}; jsonResponse: { ok: boolean; }; maxDuration: undefined; }; '/seam/connect_webview/v1/submit': { route: '/seam/connect_webview/v1/submit'; method: 'POST'; queryParams: {}; jsonBody: { connect_webview_id: string; submit_args?: ({ [x: string]: unknown; } | null) | undefined; }; commonParams: {}; formData: {}; jsonResponse: { ok: boolean; }; maxDuration: undefined; }; '/seam/console/v1/cameras/live_views/create': { route: '/seam/console/v1/cameras/live_views/create'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the camera to view. */ device_id: string; /** Indicates whether to include the camera's audio. */ include_audio?: boolean; /** Number of seconds for which the live view session is valid, up to 600. */ duration_seconds?: number; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ camera_live_view_session: { /** ID of the camera live view session. */ camera_live_view_session_id: string; /** ID of the camera. */ device_id: string; /** Token that authorizes the offer and stop requests for this session. */ token: string; /** Date and time at which the live view session expires. */ expires_at: string; }; client_session: { client_session_id: string; token: string; }; }; maxDuration: undefined; }; '/seam/console/v1/connected_accounts/replace_bridge': { route: '/seam/console/v1/connected_accounts/replace_bridge'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connected account whose Seam Bridge you want to replace. */ connected_account_id: string; /** Pairing code shown in the new Seam Bridge app. */ pairing_code: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/console/v1/credits/checkout/start': { route: '/seam/console/v1/credits/checkout/start'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; package_quantity: number; success_url: string; cancel_url: string; }; commonParams: {}; formData: {}; jsonResponse: { checkout_url: string; credit_subscription_id: string; }; maxDuration: undefined; }; '/seam/console/v1/credits/get': { route: '/seam/console/v1/credits/get'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { credits: { is_test_mode: boolean; credit_subscription: { credit_subscription_id: string; status: string; package_quantity: number; price_cents: number; current_period_started_at: string | null; current_period_ends_at: string | null; past_due_since: string | null; payment_failure: { grace_ends_at: string; amount_due_cents: number | null; } | null; canceled_at: string | null; scheduled_package_quantity: number | null; scheduled_price_cents: number | null; scheduled_change_at: string | null; pending_upgrade: { package_quantity: number; hosted_invoice_url: string | null; } | null; } | null; trial: { trial_started_at: string; trial_ends_at: string; is_active: boolean; is_suspended: boolean; trial_credits: number; used_credits: number | null; remaining_credits: number | null; is_credits_used_up: boolean; can_extend_trial: boolean; extended_trial_ends_at: string | null; } | null; usage: { as_of: string; period_started_at: string; period_ends_at: string; package_tokens: number; package_remaining_tokens: number; allowance_tokens: number; carried_tokens: number; carried_remaining_tokens: number; carried_credit_grants: { tokens: number; remaining_tokens: number; expires_at: string; }[]; remaining_tokens: number; used_tokens: number; extra_tokens: number; extra_cents_per_token: number; estimated_extra_cents: number; percent_used: number; breakdown: { billable_action: string; label: string; count: number; token_weight: number; tokens: number; }[]; connectivity: { metric: string; label: string; device_months: number; tokens: number; }[]; } | null; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/invoices/list': { route: '/seam/console/v1/credits/invoices/list'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { invoices: { invoice_id: string; period_started_at: string; period_ends_at: string; total_cents: number; status: string; hosted_invoice_url: string | null; issued_at: string; package_quantity: number | null; kind: 'package' | 'usage' | 'other'; }[]; }; maxDuration: undefined; }; '/seam/console/v1/credits/packages/list': { route: '/seam/console/v1/credits/packages/list'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { packages: { package_quantity: number; price_cents: number; included_cents_per_token: number; extra_cents_per_token: number; }[]; recommended_package_quantity: number; recommendation_basis: { trailing_30_day_tokens: number | null; is_projected_from_trial: boolean; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/payment_method/confirm': { route: '/seam/console/v1/credits/payment_method/confirm'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; checkout_session_id: string; }; commonParams: {}; formData: {}; jsonResponse: { credit_subscription: { credit_subscription_id: string; status: string; package_quantity: number; price_cents: number; current_period_started_at: string | null; current_period_ends_at: string | null; past_due_since: string | null; payment_failure: { grace_ends_at: string; amount_due_cents: number | null; } | null; canceled_at: string | null; scheduled_package_quantity: number | null; scheduled_price_cents: number | null; scheduled_change_at: string | null; pending_upgrade: { package_quantity: number; hosted_invoice_url: string | null; } | null; } | null; paid_invoice_count: number; unpaid_invoice_count: number; }; maxDuration: undefined; }; '/seam/console/v1/credits/payment_method/update': { route: '/seam/console/v1/credits/payment_method/update'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; success_url: string; cancel_url: string; }; commonParams: {}; formData: {}; jsonResponse: { checkout_url: string; }; maxDuration: undefined; }; '/seam/console/v1/credits/purchases/get': { route: '/seam/console/v1/credits/purchases/get'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; credit_subscription_id: string; }; commonParams: {}; formData: {}; jsonResponse: { purchase: { status: string; package_quantity: number; hosted_invoice_url: string | null; checkout_state: ('awaiting_checkout' | 'processing') | null; checkout_url: string | null; failure_reason: string | null; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/subscription/cancel': { route: '/seam/console/v1/credits/subscription/cancel'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { credit_subscription: { credit_subscription_id: string; status: string; package_quantity: number; price_cents: number; current_period_started_at: string | null; current_period_ends_at: string | null; past_due_since: string | null; payment_failure: { grace_ends_at: string; amount_due_cents: number | null; } | null; canceled_at: string | null; scheduled_package_quantity: number | null; scheduled_price_cents: number | null; scheduled_change_at: string | null; pending_upgrade: { package_quantity: number; hosted_invoice_url: string | null; } | null; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/subscription/change': { route: '/seam/console/v1/credits/subscription/change'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; package_quantity: number; }; commonParams: {}; formData: {}; jsonResponse: { credit_subscription: { credit_subscription_id: string; status: string; package_quantity: number; price_cents: number; current_period_started_at: string | null; current_period_ends_at: string | null; past_due_since: string | null; payment_failure: { grace_ends_at: string; amount_due_cents: number | null; } | null; canceled_at: string | null; scheduled_package_quantity: number | null; scheduled_price_cents: number | null; scheduled_change_at: string | null; pending_upgrade: { package_quantity: number; hosted_invoice_url: string | null; } | null; }; change: { kind: 'upgrade' | 'downgrade'; status: 'applied' | 'scheduled' | 'awaiting_authentication' | 'processing'; hosted_invoice_url: string | null; carried_credits: number | null; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/subscription/change/cancel': { route: '/seam/console/v1/credits/subscription/change/cancel'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { credit_subscription: { credit_subscription_id: string; status: string; package_quantity: number; price_cents: number; current_period_started_at: string | null; current_period_ends_at: string | null; past_due_since: string | null; payment_failure: { grace_ends_at: string; amount_due_cents: number | null; } | null; canceled_at: string | null; scheduled_package_quantity: number | null; scheduled_price_cents: number | null; scheduled_change_at: string | null; pending_upgrade: { package_quantity: number; hosted_invoice_url: string | null; } | null; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/subscription/resume': { route: '/seam/console/v1/credits/subscription/resume'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { credit_subscription: { credit_subscription_id: string; status: string; package_quantity: number; price_cents: number; current_period_started_at: string | null; current_period_ends_at: string | null; past_due_since: string | null; payment_failure: { grace_ends_at: string; amount_due_cents: number | null; } | null; canceled_at: string | null; scheduled_package_quantity: number | null; scheduled_price_cents: number | null; scheduled_change_at: string | null; pending_upgrade: { package_quantity: number; hosted_invoice_url: string | null; } | null; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/trial/extend': { route: '/seam/console/v1/credits/trial/extend'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { trial: { trial_started_at: string; trial_ends_at: string; is_active: boolean; is_suspended: boolean; trial_credits: number; used_credits: number | null; remaining_credits: number | null; is_credits_used_up: boolean; can_extend_trial: boolean; extended_trial_ends_at: string | null; }; }; maxDuration: undefined; }; '/seam/console/v1/credits/usage/get': { route: '/seam/console/v1/credits/usage/get'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { usage: { source: 'metronome' | 'estimate'; as_of: string; period_started_at: string; period_ends_at: string; package_credits: number | null; allowance: { package_remaining_tokens: number; allowance_tokens: number; carried_tokens: number; carried_remaining_tokens: number; carried_credit_grants: { tokens: number; remaining_tokens: number; expires_at: string; }[]; remaining_tokens: number; } | null; used_credits: number | null; by_workspace: { workspace_id: string | null; workspace_name: string | null; connectivity: { metric: string; label: string; device_months: number; credits_per_device_month: number; credits: number; }[]; actions: { billable_action: string; label: string; count: number; credits: number; }[]; credits: number; percent_of_total: number; }[] | null; by_category: { kind: 'connectivity' | 'action'; key: string; label: string; quantity: number; credits_per_unit: number; credits: number; percent_of_total: number; }[] | null; daily: { date: string; connectivity_credits: number; action_credits: number; previous_period_credits: number | null; }[] | null; is_daily_connectivity_included: boolean; }; }; maxDuration: undefined; }; '/seam/console/v1/customer_portals/list': { route: '/seam/console/v1/customer_portals/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { customer_key?: string | undefined; limit?: number; page_cursor?: string | undefined; }; formData: {}; jsonResponse: { customer_portals: { customer_portal_id: string; customer_key: string; created_at: string; expires_at: string | null; is_reopenable: boolean; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/seam/console/v1/get_resource_locator': { route: '/seam/console/v1/get_resource_locator'; method: 'GET' | 'POST'; queryParams: { uuid: string; }; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { resource_locator: { resource_type: string; acs_system_id?: string | undefined; device_id?: string | undefined; }; }; maxDuration: undefined; }; '/seam/console/v1/lynx_migration/get_property_migration_status': { route: '/seam/console/v1/lynx_migration/get_property_migration_status'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space (property) to get the migration status for. */ space_id: string; }; formData: {}; jsonResponse: { lynx_migration_property_run: { lynx_migration_property_run_id: string; space_id: string; status: string; created_at: string; updated_at: string; child_status_counts: { [x: string]: number; }; } | null; }; maxDuration: undefined; }; '/seam/console/v1/lynx_migration/get_reservation_migration_status': { route: '/seam/console/v1/lynx_migration/get_reservation_migration_status'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the access grant (reservation) to get the migration status for. */ access_grant_id: string; }; formData: {}; jsonResponse: { lynx_migration_reservation_run: { lynx_migration_run_id: string; access_grant_id: string; status: string; created_at: string; updated_at: string; deleted_codes: { access_code_id: string; code: string | null; name: string | null; is_managed: boolean; device_id: string | null; type: string | null; starts_at: string | null; ends_at: string | null; origin: string; }[]; account_sync_requests: { at: string; phase: string; connected_account_ids: string[]; }[]; } | null; }; maxDuration: undefined; }; '/seam/console/v1/lynx_migration/list_property_reservations': { route: '/seam/console/v1/lynx_migration/list_property_reservations'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space (property) to plan a Lynx migration for. */ space_id: string; }; formData: {}; jsonResponse: { lynx_migration_property_plan: { space_id: string; total: number; eligible_count: number; eligible: { access_grant_id: string; guest_name: string | null; }[]; skipped: { access_grant_id: string; guest_name: string | null; reason: string | null; }[]; }; }; maxDuration: undefined; }; '/seam/console/v1/lynx_migration/migrate_property': { route: '/seam/console/v1/lynx_migration/migrate_property'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the space (property) to migrate. */ space_id: string; }; commonParams: {}; formData: {}; jsonResponse: { lynx_migration_property_run: { lynx_migration_property_run_id: string; space_id: string; status: string; already_running: boolean; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/create': { route: '/seam/console/v1/organizations/create'; method: 'POST'; queryParams: {}; jsonBody: { name: string; logo_image_base64?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { organization: { organization_id: string; name: string; logo_url: string | null; connect_webview_customization: { primary_button_color: string | null; primary_button_text_color: string | null; logo_shape: ('circle' | 'square') | null; }; created_at: string; updated_at: string; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/customization_profiles/copy': { route: '/seam/console/v1/organizations/customization_profiles/copy'; method: 'POST'; queryParams: {}; jsonBody: { source_workspace_id: string; source_customization_profile_id: string; destination_workspace_id: string; destination_customization_profile_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** A customization profile. */ customization_profile: { workspace_id: string; name: string | null; customization_profile_id: string; /** 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. */ customer_key: string | null; created_at: string; /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */ is_workspace_default: boolean; logo_url?: string | undefined; primary_color?: string | undefined; secondary_color?: string | undefined; customer_portal_theme?: { primary_color?: string | undefined; primary_foreground_color?: string | undefined; secondary_color?: string | undefined; secondary_foreground_color?: string | undefined; font_family?: string | undefined; mono_font_family?: string | undefined; } | undefined; /** Theme for the Instant Keys apps. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; message_overrides?: { [x: string]: { [x: string]: string; }; } | undefined; /** 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. */ customer_portal_features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/delete': { route: '/seam/console/v1/organizations/delete'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { organization: { organization_id: string; name: string; logo_url: string | null; connect_webview_customization: { primary_button_color: string | null; primary_button_text_color: string | null; logo_shape: ('circle' | 'square') | null; }; created_at: string; updated_at: string; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/get': { route: '/seam/console/v1/organizations/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { organization_id: string; }; formData: {}; jsonResponse: { organization: { organization_id: string; name: string; logo_url: string | null; connect_webview_customization: { primary_button_color: string | null; primary_button_text_color: string | null; logo_shape: ('circle' | 'square') | null; }; created_at: string; updated_at: string; }; members: { organization_member_id: string; organization_id: string; user_id: string; email: string | null; first_name: string | null; last_name: string | null; role: 'admin' | 'member'; created_at: string; }[]; pending_invitations: { organization_invitation_id: string; organization_id: string; email: string; role: 'admin' | 'member'; status: 'pending' | 'accepted' | 'revoked'; invited_at: string; expires_at: string; }[]; workspaces: { workspace_id: string; name: string; is_sandbox: boolean; }[]; }; maxDuration: undefined; }; '/seam/console/v1/organizations/invitations/revoke': { route: '/seam/console/v1/organizations/invitations/revoke'; method: 'POST'; queryParams: {}; jsonBody: { organization_invitation_id: string; }; commonParams: {}; formData: {}; jsonResponse: { organization_invitation: { organization_invitation_id: string; organization_id: string; email: string; role: 'admin' | 'member'; status: 'pending' | 'accepted' | 'revoked'; invited_at: string; expires_at: string; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/list': { route: '/seam/console/v1/organizations/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { organizations: { organization_id: string; name: string; logo_url: string | null; connect_webview_customization: { primary_button_color: string | null; primary_button_text_color: string | null; logo_shape: ('circle' | 'square') | null; }; created_at: string; updated_at: string; workspace_count: number; member_count: number; }[]; }; maxDuration: undefined; }; '/seam/console/v1/organizations/members/add': { route: '/seam/console/v1/organizations/members/add'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; email: string; role?: 'admin' | 'member'; }; commonParams: {}; formData: {}; jsonResponse: { organization_member?: { organization_member_id: string; organization_id: string; user_id: string; email: string | null; first_name: string | null; last_name: string | null; role: 'admin' | 'member'; created_at: string; } | undefined; organization_invitation?: { organization_invitation_id: string; organization_id: string; email: string; role: 'admin' | 'member'; status: 'pending' | 'accepted' | 'revoked'; invited_at: string; expires_at: string; } | undefined; }; maxDuration: undefined; }; '/seam/console/v1/organizations/members/remove': { route: '/seam/console/v1/organizations/members/remove'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; user_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/console/v1/organizations/members/update': { route: '/seam/console/v1/organizations/members/update'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; user_id: string; role: 'admin' | 'member'; }; commonParams: {}; formData: {}; jsonResponse: { organization_member: { organization_member_id: string; organization_id: string; user_id: string; email: string | null; first_name: string | null; last_name: string | null; role: 'admin' | 'member'; created_at: string; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/members/workspaces/grant': { route: '/seam/console/v1/organizations/members/workspaces/grant'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; user_id: string; workspace_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/console/v1/organizations/members/workspaces/list': { route: '/seam/console/v1/organizations/members/workspaces/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { organization_id: string; user_id: string; }; formData: {}; jsonResponse: { workspaces: { workspace_id: string; name: string; is_sandbox: boolean; is_owner: boolean; created_at: string; }[]; }; maxDuration: undefined; }; '/seam/console/v1/organizations/members/workspaces/revoke': { route: '/seam/console/v1/organizations/members/workspaces/revoke'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; user_id: string; workspace_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/console/v1/organizations/update': { route: '/seam/console/v1/organizations/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { organization_id: string; name?: string | undefined; logo_image_base64?: (string | null) | undefined; connect_webview_customization?: { primary_button_color?: (string | null) | undefined; primary_button_text_color?: (string | null) | undefined; logo_shape?: (('circle' | 'square') | null) | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { organization: { organization_id: string; name: string; logo_url: string | null; connect_webview_customization: { primary_button_color: string | null; primary_button_text_color: string | null; logo_shape: ('circle' | 'square') | null; }; created_at: string; updated_at: string; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/upload_logo': { route: '/seam/console/v1/organizations/upload_logo'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { organization: { organization_id: string; name: string; logo_url: string | null; connect_webview_customization: { primary_button_color: string | null; primary_button_text_color: string | null; logo_shape: ('circle' | 'square') | null; }; created_at: string; updated_at: string; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/workspaces/create': { route: '/seam/console/v1/organizations/workspaces/create'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; name: string; is_sandbox?: boolean; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). */ workspace: { /** ID of the workspace. */ workspace_id: string; /** Name of the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ name: string; /** Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). * @deprecated Use `connect_partner_name` instead.*/ company_name: string; /** Indicates whether the workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). */ is_sandbox: boolean; connect_webview_customization: { /** 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). */ primary_button_color?: string | undefined; /** 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). */ primary_button_text_color?: string | undefined; /** 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). */ success_message?: string | undefined; /** 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). */ logo_shape?: ('circle' | 'square') | undefined; /** 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). */ inviter_logo_url?: string | undefined; }; /** 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. */ is_suspended: boolean; /** Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ connect_partner_name: string | null; /** 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. */ publishable_key?: string | undefined; /** Indicates whether publishable key authentication is enabled for this workspace. */ is_publishable_key_auth_enabled: boolean; /** ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization. */ organization_id: string | null; }; }; maxDuration: undefined; }; '/seam/console/v1/organizations/workspaces/remove': { route: '/seam/console/v1/organizations/workspaces/remove'; method: 'POST'; queryParams: {}; jsonBody: { workspace_id: string; }; commonParams: {}; formData: {}; jsonResponse: { ok: boolean; }; maxDuration: undefined; }; '/seam/console/v1/organizations/workspaces/update': { route: '/seam/console/v1/organizations/workspaces/update'; method: 'POST'; queryParams: {}; jsonBody: { workspace_id: string; name: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). */ workspace: { /** ID of the workspace. */ workspace_id: string; /** Name of the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ name: string; /** Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). * @deprecated Use `connect_partner_name` instead.*/ company_name: string; /** Indicates whether the workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). */ is_sandbox: boolean; connect_webview_customization: { /** 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). */ primary_button_color?: string | undefined; /** 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). */ primary_button_text_color?: string | undefined; /** 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). */ success_message?: string | undefined; /** 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). */ logo_shape?: ('circle' | 'square') | undefined; /** 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). */ inviter_logo_url?: string | undefined; }; /** 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. */ is_suspended: boolean; /** Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ connect_partner_name: string | null; /** 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. */ publishable_key?: string | undefined; /** Indicates whether publishable key authentication is enabled for this workspace. */ is_publishable_key_auth_enabled: boolean; /** ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization. */ organization_id: string | null; }; }; maxDuration: undefined; }; '/seam/console/v1/referrals/code/create': { route: '/seam/console/v1/referrals/code/create'; method: 'POST'; queryParams: {}; jsonBody: { organization_id: string; }; commonParams: {}; formData: {}; jsonResponse: { referral_program: { /** Whether the referral program is available to the organization. */ is_available: boolean; /** The organization's referral code, or null if it has none yet. */ referral_code: string | null; /** Number of signups that used the organization's referral code. */ referred_signup_count: number; }; }; maxDuration: undefined; }; '/seam/console/v1/referrals/get': { route: '/seam/console/v1/referrals/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { organization_id: string; }; formData: {}; jsonResponse: { referral_program: { /** Whether the referral program is available to the organization. */ is_available: boolean; /** The organization's referral code, or null if it has none yet. */ referral_code: string | null; /** Number of signups that used the organization's referral code. */ referred_signup_count: number; }; }; maxDuration: undefined; }; '/seam/console/v1/sites/create': { route: '/seam/console/v1/sites/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Name of the site that you want to create. */ name: string; /** Unique key for the site within the workspace. */ site_key?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ site: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }; }; maxDuration: undefined; }; '/seam/console/v1/sites/delete': { route: '/seam/console/v1/sites/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the site that you want to delete. */ site_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/console/v1/sites/list': { route: '/seam/console/v1/sites/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** String for which to search. Filters sites to those with a partial match on `name` or `site_key`. */ search?: string | undefined; }; formData: {}; jsonResponse: { sites: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }[]; }; maxDuration: undefined; }; '/seam/console/v1/sites/update': { route: '/seam/console/v1/sites/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** ID of the site that you want to update. */ site_id: string; /** New name for the site. */ name?: string | undefined; /** New unique key for the site within the workspace. */ site_key?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ site: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }; }; maxDuration: undefined; }; '/seam/console/v1/timelines/get': { route: '/seam/console/v1/timelines/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the resource to get timelines for. */ resource_id: string; /** Maximum number of timeline entry groups to return per page. Maximum 100. */ limit?: number; /** Timestamp by which to limit returned timeline entries. Returns entries created before this timestamp. */ created_before?: Date | undefined; /** Timestamp by which to limit returned timeline entries. Returns entries created after this timestamp. */ created_after?: Date | undefined; /** Time range to filter timeline entries. Returns entries created between the two timestamps [start, end]. */ created_between?: Date[] | undefined; /** Filter timeline entries by entry type. If not specified, all entry types are returned. */ entry_types?: ('resource_created' | 'resource_updated' | 'resource_deleted' | 'event' | 'provider_call' | 'automation_run' | 'webhook_processed')[] | undefined; /** Filter timeline entries by context type. 'request' for API requests, 'job' for background jobs. */ context_type?: ('request' | 'job') | undefined; /** Identifies the specific page of results to return. Specify `null` or omit this parameter to return the first page. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { timeline: { resource_type: string; resource_id: string; groups: { context: { context_type: 'request'; request_id: string; request_payload: { [x: string]: any; }; response_payload: { [x: string]: any; }; } | { context_type: 'job'; job_id: string; }; entries: { resource_type: string; resource_id: string; entry_type: string; body: { entry_type: 'resource_created'; description: string; } | { entry_type: 'resource_updated'; description: string; properties_updated?: { [x: string]: any; } | undefined; properties_before?: { [x: string]: any; } | undefined; errors?: string[] | undefined; warnings?: string[] | undefined; } | { entry_type: 'resource_deleted'; description: string; } | { entry_type: 'event'; event_type: string; event_id: string; } | { entry_type: 'provider_call'; description: string; response_status_code: number; response_body?: { [x: string]: any; } | undefined; } | { entry_type: 'automation_run'; rule_name: string; status: 'started' | 'completed' | 'failed' | 'skipped'; skip_reason?: string | undefined; error_message?: string | undefined; duration_ms?: number | undefined; } | { entry_type: 'webhook_processed'; connector_type: string; event_type: string; status: 'processed' | 'skipped' | 'failed'; skip_reason?: string | undefined; error_message?: string | undefined; raw_payload?: { [x: string]: any; } | undefined; parsed_event?: { [x: string]: any; } | undefined; }; created_at: string; }[]; created_at: string; }[]; }; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; /** Total number of timeline entry groups */ total_count: number; /** Number of items per page */ page_size: number; }; }; maxDuration: undefined; }; '/seam/console/v1/workspace/console_settings/get': { route: '/seam/console/v1/workspace/console_settings/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { console_settings: { /** Pages shown as shortcuts in the console sidebar, in order. */ sidebar_shortcuts?: string[] | undefined; /** Resources pinned in the console sidebar, in order. */ pinned_resources?: { resource_type: 'device' | 'space' | 'access_grant' | 'access_code' | 'reservation' | 'user_identity' | 'connected_account' | 'acs_system'; resource_id: string; /** Name shown in the sidebar, as it was when pinned. */ display_name: string; }[] | undefined; /** Customer the console was last scoped to. `null` means all customers. */ selected_customer_key?: (string | null) | undefined; /** How the console assistant carries out actions. `null` asks each time. */ assistant_mode?: (('show_me' | 'do_it') | null) | undefined; /** Access list the console's Access opens: the one last used. `null` opens access grants. */ access_list_page?: (('access_grants' | 'access_codes') | null) | undefined; }; }; maxDuration: undefined; }; '/seam/console/v1/workspace/console_settings/update': { route: '/seam/console/v1/workspace/console_settings/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** Pages shown as shortcuts in the console sidebar, in order. */ sidebar_shortcuts?: string[] | undefined; /** Resources pinned in the console sidebar, in order. */ pinned_resources?: { resource_type: 'device' | 'space' | 'access_grant' | 'access_code' | 'reservation' | 'user_identity' | 'connected_account' | 'acs_system'; resource_id: string; /** Name shown in the sidebar, as it was when pinned. */ display_name: string; }[] | undefined; /** Customer the console was last scoped to. `null` means all customers. */ selected_customer_key?: (string | null) | undefined; /** How the console assistant carries out actions. `null` asks each time. */ assistant_mode?: (('show_me' | 'do_it') | null) | undefined; /** Access list the console's Access opens: the one last used. `null` opens access grants. */ access_list_page?: (('access_grants' | 'access_codes') | null) | undefined; }; commonParams: {}; formData: {}; jsonResponse: { console_settings: { /** Pages shown as shortcuts in the console sidebar, in order. */ sidebar_shortcuts?: string[] | undefined; /** Resources pinned in the console sidebar, in order. */ pinned_resources?: { resource_type: 'device' | 'space' | 'access_grant' | 'access_code' | 'reservation' | 'user_identity' | 'connected_account' | 'acs_system'; resource_id: string; /** Name shown in the sidebar, as it was when pinned. */ display_name: string; }[] | undefined; /** Customer the console was last scoped to. `null` means all customers. */ selected_customer_key?: (string | null) | undefined; /** How the console assistant carries out actions. `null` asks each time. */ assistant_mode?: (('show_me' | 'do_it') | null) | undefined; /** Access list the console's Access opens: the one last used. `null` opens access grants. */ access_list_page?: (('access_grants' | 'access_codes') | null) | undefined; }; }; maxDuration: undefined; }; '/seam/console/v1/workspace/feature_flags/list': { route: '/seam/console/v1/workspace/feature_flags/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { feature_flags: { [x: string]: boolean; }; }; maxDuration: undefined; }; '/seam/console/v1/workspace/get_summary': { route: '/seam/console/v1/workspace/get_summary'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to summarize the workspace. */ customer_key?: string | undefined; }; formData: {}; jsonResponse: { workspace_summary: { device_count: number; online_device_count: number; devices_needing_attention_count: number; active_access_code_count: number; access_code_delivery_7d: { delivered_count: number; failed_count: number; }; }; }; maxDuration: undefined; }; '/seam/console/v1/workspace/list_access_codes_for_today': { route: '/seam/console/v1/workspace/list_access_codes_for_today'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list access codes. */ customer_key?: string | undefined; /** Start of the viewer's day, inclusive. Pass with `ends_at`; defaults to the start of the current UTC day. */ starts_at?: Date | undefined; /** End of the viewer's day, exclusive. Pass with `starts_at`; defaults to the end of the current UTC day. */ ends_at?: Date | undefined; /** Maximum number of starting, and of ending, access codes to return. */ limit?: number; }; formData: {}; jsonResponse: { access_codes_for_today: { starting_count: number; starting: { access_code_id: string; code: string | null; name: string | null; device_id: string; device_name: string; starts_at: string | null; ends_at: string | null; status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; }[]; ending_count: number; ending: { access_code_id: string; code: string | null; name: string | null; device_id: string; device_name: string; starts_at: string | null; ends_at: string | null; status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; }[]; }; }; maxDuration: undefined; }; '/seam/console/v1/workspace/list_attention_items': { route: '/seam/console/v1/workspace/list_attention_items'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list attention items. */ customer_key?: string | undefined; /** Maximum number of devices, and of access codes, to return. */ limit?: number; }; formData: {}; jsonResponse: { attention_items: { device_count: number; devices: { device_id: string; display_name: string; error: { error_code: string; message: string; }; }[]; access_code_count: number; access_codes: { access_code_id: string; code: string | null; name: string | null; device_id: string; device_name: string; error: { error_code: string; message: string; }; }[]; }; }; maxDuration: undefined; }; '/seam/console/v1/workspace/list_reservations_for_today': { route: '/seam/console/v1/workspace/list_reservations_for_today'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list reservations. */ customer_key?: string | undefined; /** Start of the viewer's day, inclusive. Pass with `ends_at`; defaults to the start of the current UTC day. */ starts_at?: Date | undefined; /** End of the viewer's day, exclusive. Pass with `starts_at`; defaults to the end of the current UTC day. */ ends_at?: Date | undefined; /** Maximum number of check-ins, and of check-outs, to return. */ limit?: number; }; formData: {}; jsonResponse: { reservations_for_today: { check_in_count: number; check_ins: { reservation_id: string; reservation_key: string; guest_name: string | null; name: string | null; starts_at: string | null; ends_at: string | null; space: { space_id: string | null; name: string | null; } | null; }[]; check_out_count: number; check_outs: { reservation_id: string; reservation_key: string; guest_name: string | null; name: string | null; starts_at: string | null; ends_at: string | null; space: { space_id: string | null; name: string | null; } | null; }[]; }; }; maxDuration: undefined; }; '/seam/customer/v1/access_grants/list': { route: '/seam/customer/v1/access_grants/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { access_grants: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/access_grants/update': { route: '/seam/customer/v1/access_grants/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** ID of the Access Grant to update. */ access_grant_id: string; /** Array of location IDs to associate with the access grant. */ space_ids: string[]; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/access_methods/encode': { route: '/seam/customer/v1/access_methods/encode'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the encoder to use for encoding the access method. */ acs_encoder_id: string; /** ID of the access method to encode onto a card. */ access_method_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/seam/customer/v1/automation_device_actions/list': { route: '/seam/customer/v1/automation_device_actions/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** The customer_key identifying the customer. Required when not using client_session_with_customer auth. */ customer_key?: string | undefined; /** ID of the reservation whose device automation actions to list. */ reservation_id?: string | undefined; /** Key of the reservation whose device automation actions to list. */ reservation_key?: string | undefined; }; formData: {}; jsonResponse: { automation_device_actions: { automation_device_action_id: string; reservation_id: string; device_id: string; rule_type: 'sound' | 'sensor' | 'pool'; phase: string; run_at: string; status: 'pending' | 'running' | 'succeeded' | 'skipped' | 'failed'; completed_at: string | null; action_attempt_id?: string | undefined; message?: string | undefined; skip_reason?: string | undefined; warnings: { message: string; }[]; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/automation_runs/create': { route: '/seam/customer/v1/automation_runs/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Key of the customer that owns the reservation. Not allowed with client_session_with_customer auth. */ customer_key?: string | undefined; /** Key of the reservation to run automations for. */ reservation_key: string; /** Don't use the reservation's preferred code for the new access grant's code. */ should_ignore_preferred_code?: boolean; /** 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. */ should_ignore_guest_phone_last4_as_code?: boolean; }; commonParams: {}; formData: {}; jsonResponse: { automation_run: { status: 'access_grant_created' | 'skipped'; reservation_id: string; reservation_key: string; /** ID of the access grant the run created. */ access_grant_id: string | null; /** Why the run did not create an access grant. */ skip_reason: string | null; message: string | null; /** 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. */ reused_code_source: ('reservation_preferred_code' | 'guest_phone_number') | null; }; }; maxDuration: undefined; }; '/seam/customer/v1/automation_runs/list': { route: '/seam/customer/v1/automation_runs/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the automation for which you want to retrieve all automation runs. */ automation_id?: string | undefined; /** ID of the partner resource for which you want to retrieve all automation runs. */ partner_resource_id?: string | undefined; /** Filter automation runs by the specific rule that was executed. */ rule?: ('reservation_created' | 'reservation_time_updated' | 'reservation_deleted' | 'space_name_updated') | undefined; /** Filter automation runs by success status. */ success?: boolean | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Timestamp by which to limit returned automation runs. Returns runs created before this timestamp. */ created_before?: Date | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { automation_runs: { automation_run_id: string; workspace_id: string; automation_id: string | null; partner_resource_id: string | null; partner_key: string | null; resource_type: string | null; resource_type_alias: string | null; automation_result?: { success: boolean; rule: 'reservation_created' | 'reservation_time_updated' | 'reservation_deleted'; actions: { action_type: 'create' | 'update' | 'delete'; resource_type: string; access_grant_id: string; }[]; error?: string | undefined; message?: string | undefined; } | undefined; created_at: string; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/seam/customer/v1/automations/delete': { route: '/seam/customer/v1/automations/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/automations/get': { route: '/seam/customer/v1/automations/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Key of the customer to get automation config for. */ customer_key?: string | undefined; }; formData: {}; jsonResponse: { access_rules?: { reservation_created?: { rule: 'reservation_created'; config: { access_methods: ('card' | 'mobile_key' | 'code')[]; method_issuance_strategy: 'first_available' | 'first_two_available' | 'all_available'; card_count_on_reservation_create?: number | undefined; instant_key_max_use_count?: number | undefined; /** * @deprecated Use `prefer_guest_phone_last_digits_as_code`.*/ prefer_guest_phone_last4_as_code?: boolean | undefined; /** 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. */ prefer_guest_phone_last_digits_as_code?: boolean | undefined; allow_shared_email_and_phone_across_user_identities?: boolean | undefined; access_starts_minutes_before_reservation?: number | undefined; access_ends_minutes_after_reservation?: number | undefined; }; } | undefined; reservation_time_updated?: { rule: 'reservation_time_updated'; config?: {} | undefined; } | undefined; reservation_spaces_updated?: { rule: 'reservation_spaces_updated'; config?: {} | undefined; } | undefined; reservation_deleted?: { rule: 'reservation_deleted'; config?: {} | undefined; } | undefined; space_name_updated?: { rule: 'space_name_updated'; config?: {} | undefined; } | undefined; user_identity_name_updated?: { rule: 'user_identity_name_updated'; config?: {} | undefined; } | undefined; staff_member_name_updated?: { rule: 'staff_member_name_updated'; config?: {} | undefined; } | undefined; staff_member_created?: { rule: 'staff_member_created'; config: { allow_shared_email_and_phone_across_user_identities?: boolean | undefined; }; } | undefined; } | undefined; climate_rules?: { rules: { reservation_created?: { occupied_preset_key?: string | undefined; automated_occupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; unoccupied_preset_key?: string | undefined; automated_unoccupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; precondition_minutes_before_reservation?: number | undefined; } | undefined; reservation_time_updated?: {} | undefined; reservation_deleted?: {} | undefined; }; } | undefined; sound_rules?: { rules: { reservation_created?: { on_check_in?: { minutes_before_check_in?: number | undefined; speakers?: { set_volume_to?: number | undefined; unmute?: boolean | undefined; play_chime?: boolean | undefined; play_favorite?: { favorite_id: string; shuffle?: boolean | undefined; } | undefined; play_audio_clip?: { /** Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself. */ audio_url: string; volume?: number | undefined; } | undefined; } | undefined; } | undefined; on_check_out?: { minutes_after_check_out?: number | undefined; speakers?: { pause_playback?: boolean | undefined; unmute?: boolean | undefined; reset_volume_to?: number | undefined; } | undefined; } | undefined; } | undefined; reservation_time_updated?: {} | undefined; reservation_spaces_updated?: {} | undefined; reservation_deleted?: {} | undefined; }; } | undefined; sensor_rules?: { rules: { noise_sensors?: { normal_hours: { noise_threshold_decibels: number; }; quiet_hours?: ({ /** Time of day as HH:00, in each noise sensor's own time zone. */ starts_daily_at: string; /** Time of day as HH:00, in each noise sensor's own time zone. */ ends_daily_at: string; noise_threshold_decibels: number; } | null) | undefined; /** 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. */ vacant?: ({ noise_threshold_decibels: number; minutes_after_check_out?: number | undefined; } | null) | undefined; } | undefined; }; } | undefined; pool_rules?: { rules: { reservation_created?: { /** Which water in the reservation's spaces to heat: pools, spas, or both. */ water_bodies: 'pools' | 'spas' | 'pools_and_spas'; on_heat_up: { minutes_before_check_in: number; heating_set_point_fahrenheit?: number | undefined; heating_set_point_celsius?: number | undefined; }; on_check_out: { minutes_after_check_out: number; turn_off: true; }; } | undefined; reservation_time_updated?: {} | undefined; reservation_spaces_updated?: {} | undefined; reservation_deleted?: {} | undefined; }; } | undefined; }; maxDuration: undefined; }; '/seam/customer/v1/automations/get_guest_phone_last4_usage': { route: '/seam/customer/v1/automations/get_guest_phone_last4_usage'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** Whether the workspace-level automation uses prefer_guest_phone_last4_as_code. */ is_used_by_workspace: boolean; /** Number of customers whose automation uses prefer_guest_phone_last4_as_code. */ customer_count: number; }; maxDuration: undefined; }; '/seam/customer/v1/automations/switch_to_guest_phone_last_digits': { route: '/seam/customer/v1/automations/switch_to_guest_phone_last_digits'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** Number of automations that were switched. */ switched_count: number; }; maxDuration: undefined; }; '/seam/customer/v1/automations/update': { route: '/seam/customer/v1/automations/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** Key of the customer to update automation config for. */ customer_key?: string | undefined; /** Access automation rules configuration. */ access_rules?: { reservation_created?: ({ rule: 'reservation_created'; config: { access_methods: ('card' | 'mobile_key' | 'code')[]; method_issuance_strategy: 'first_available' | 'first_two_available' | 'all_available'; card_count_on_reservation_create?: number | undefined; instant_key_max_use_count?: number | undefined; /** * @deprecated Use `prefer_guest_phone_last_digits_as_code`.*/ prefer_guest_phone_last4_as_code?: boolean | undefined; /** 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. */ prefer_guest_phone_last_digits_as_code?: boolean | undefined; allow_shared_email_and_phone_across_user_identities?: boolean | undefined; access_starts_minutes_before_reservation?: number | undefined; access_ends_minutes_after_reservation?: number | undefined; }; } | null) | undefined; reservation_time_updated?: ({ rule: 'reservation_time_updated'; config?: {} | undefined; } | null) | undefined; reservation_spaces_updated?: ({ rule: 'reservation_spaces_updated'; config?: {} | undefined; } | null) | undefined; reservation_deleted?: ({ rule: 'reservation_deleted'; config?: {} | undefined; } | null) | undefined; space_name_updated?: ({ rule: 'space_name_updated'; config?: {} | undefined; } | null) | undefined; user_identity_name_updated?: ({ rule: 'user_identity_name_updated'; config?: {} | undefined; } | null) | undefined; staff_member_name_updated?: ({ rule: 'staff_member_name_updated'; config?: {} | undefined; } | null) | undefined; staff_member_created?: ({ rule: 'staff_member_created'; config: { allow_shared_email_and_phone_across_user_identities?: boolean | undefined; }; } | null) | undefined; } | undefined; /** Climate automation rules configuration. */ climate_rules?: { rules?: { reservation_created?: ({ occupied_preset_key?: string | undefined; automated_occupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; unoccupied_preset_key?: string | undefined; automated_unoccupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; precondition_minutes_before_reservation?: number | undefined; } | null) | undefined; reservation_time_updated?: ({} | null) | undefined; reservation_deleted?: ({} | null) | undefined; } | undefined; } | undefined; /** Sound automation rules configuration. */ sound_rules?: { rules?: { reservation_created?: ({ on_check_in?: { minutes_before_check_in?: number | undefined; speakers?: { set_volume_to?: number | undefined; unmute?: boolean | undefined; play_chime?: boolean | undefined; play_favorite?: { favorite_id: string; shuffle?: boolean | undefined; } | undefined; play_audio_clip?: { /** Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself. */ audio_url: string; volume?: number | undefined; } | undefined; } | undefined; } | undefined; on_check_out?: { minutes_after_check_out?: number | undefined; speakers?: { pause_playback?: boolean | undefined; unmute?: boolean | undefined; reset_volume_to?: number | undefined; } | undefined; } | undefined; } | null) | undefined; reservation_time_updated?: ({} | null) | undefined; reservation_spaces_updated?: ({} | null) | undefined; reservation_deleted?: ({} | null) | undefined; } | undefined; } | undefined; /** 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. */ sensor_rules?: { rules?: { noise_sensors?: ({ normal_hours: { noise_threshold_decibels: number; }; quiet_hours?: ({ /** Time of day as HH:00, in each noise sensor's own time zone. */ starts_daily_at: string; /** Time of day as HH:00, in each noise sensor's own time zone. */ ends_daily_at: string; noise_threshold_decibels: number; } | null) | undefined; /** 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. */ vacant?: ({ noise_threshold_decibels: number; minutes_after_check_out?: number | undefined; } | null) | undefined; } | null) | undefined; } | undefined; } | undefined; /** Pool heating automation rules configuration. Requires pool devices to be enabled for the workspace. */ pool_rules?: { rules?: { reservation_created?: ({ /** Which water in the reservation's spaces to heat: pools, spas, or both. */ water_bodies: 'pools' | 'spas' | 'pools_and_spas'; on_heat_up: { minutes_before_check_in: number; heating_set_point_fahrenheit?: number | undefined; heating_set_point_celsius?: number | undefined; }; on_check_out: { minutes_after_check_out: number; turn_off: true; }; } | null) | undefined; reservation_time_updated?: ({} | null) | undefined; reservation_spaces_updated?: ({} | null) | undefined; reservation_deleted?: ({} | null) | undefined; } | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/connected_accounts/replace_bridge': { route: '/seam/customer/v1/connected_accounts/replace_bridge'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connected account whose Seam Bridge you want to replace. */ connected_account_id: string; /** Pairing code shown in the new Seam Bridge app. */ pairing_code: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/connector_customers/delete': { route: '/seam/customer/v1/connector_customers/delete'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connector customer to delete. */ connector_customer_id: string; }; commonParams: {}; formData: {}; jsonResponse: { connector_customer: { connector_customer_id: string; connector_id: string; status: 'deleted'; }; }; maxDuration: undefined; }; '/seam/customer/v1/connector_customers/list': { route: '/seam/customer/v1/connector_customers/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the connector. */ connector_id?: string | undefined; }; formData: {}; jsonResponse: { connector_customers: { connector_customer_id: string; connector_id: string; customer_key: string; instance_config: { [x: string]: any; } | null; initial_sync_completed: boolean; initial_sync_status: string | null; status: string | null; created_at: string; updated_at: string; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/authorize': { route: '/seam/customer/v1/connectors/authorize'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Workspace slug */ slug: string; /** Connector name/type. If not provided, workspace_slug will be used as connector_name */ connector_name?: string | undefined; }; formData: {}; jsonResponse: { connector_authorize: { authorize_url: string; connector_type: string; }; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/connector_types': { route: '/seam/customer/v1/connectors/connector_types'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { connector_types: { connector_type: string; display_name: string; description?: string | undefined; editable_fields: { name: string; display_name: string; description: string; type: 'string' | 'string[]' | 'number' | 'boolean'; required: boolean; }[]; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/create': { route: '/seam/customer/v1/connectors/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Type of connector to create */ connector_type: 'mock' | 'mews' | 'rms' | 'cloudbeds' | 'smoobu' | 'zonal' | 'ical' | 'lodgify' | 'hostaway' | 'guesty' | 'acuity_scheduling'; /** Key identifying the customer */ customer_key?: string | undefined; /** Instance-specific configuration for the connector */ config: { [x: string]: unknown; }; }; commonParams: {}; formData: {}; jsonResponse: { connector: { connector_id: string; connector_type: string; status: 'active' | 'inactive' | 'error'; webhook_subscription?: { subscription_id: string; webhook_url: string; events: string[]; status: 'active' | 'inactive' | 'error'; } | undefined; error?: string | undefined; }; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/delete': { route: '/seam/customer/v1/connectors/delete'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connector to delete */ connector_id: string; customer_key?: string | undefined; customer_id?: string | undefined; connector_customer_id?: string | undefined; unique_provider_resource_key?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { connector: { connector_id: string; connector_type: string; status: 'deleted'; }; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/external_sites/list': { route: '/seam/customer/v1/connectors/external_sites/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the connected account to list external sites for */ connected_account_id: string; }; formData: {}; jsonResponse: { external_sites: { key: string; name: string; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/ical/validate-config': { route: '/seam/customer/v1/connectors/ical/validate-config'; method: 'POST'; queryParams: {}; jsonBody: { /** iCal feed URL to validate against */ ical_url: string; /** Config to validate */ ical_config: { /** Optional filter to skip non-matching events */ filter?: { /** iCal property name to match against */ source: string; /** Regex pattern — events not matching are skipped */ pattern: string; } | undefined; fields: { /** How to extract the reservation key (falls back to UID) */ reservation_key?: { /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ source: string; /** Regex with capture group to extract value from the property */ pattern?: string | undefined; /** Special type handling — 'date' parses iCal date formats */ type?: 'date' | undefined; } | undefined; /** How to extract guest name */ guest_name?: { /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ source: string; /** Regex with capture group to extract value from the property */ pattern?: string | undefined; /** Special type handling — 'date' parses iCal date formats */ type?: 'date' | undefined; } | undefined; /** How to extract guest email */ guest_email?: { /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ source: string; /** Regex with capture group to extract value from the property */ pattern?: string | undefined; /** Special type handling — 'date' parses iCal date formats */ type?: 'date' | undefined; } | undefined; /** How to extract guest phone */ guest_phone?: { /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ source: string; /** Regex with capture group to extract value from the property */ pattern?: string | undefined; /** Special type handling — 'date' parses iCal date formats */ type?: 'date' | undefined; } | undefined; /** How to extract check-in date */ starts_at: { /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ source: string; /** Regex with capture group to extract value from the property */ pattern?: string | undefined; /** Special type handling — 'date' parses iCal date formats */ type?: 'date' | undefined; }; /** How to extract check-out date */ ends_at: { /** iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc. */ source: string; /** Regex with capture group to extract value from the property */ pattern?: string | undefined; /** Special type handling — 'date' parses iCal date formats */ type?: 'date' | undefined; }; }; }; }; commonParams: {}; formData: {}; jsonResponse: { validation_result: { is_valid: boolean; total_events: number; matched_events: number; filtered_events: number; reservations: { uid: string; reservation_key: string | null; guest_name: string | null; guest_email: string | null; guest_phone: string | null; starts_at: string | null; ends_at: string | null; }[]; errors: string[]; }; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/list': { route: '/seam/customer/v1/connectors/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { connectors: { connector_id: string; connector_type: string; customer_key: string | null; unique_provider_resource_key: string | null; status: 'active' | 'inactive' | 'error'; config: { [x: string]: any; }; created_at: string; updated_at: string; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/sync': { route: '/seam/customer/v1/connectors/sync'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connector to sync */ connector_id: string; /** Type of the connector to sync */ connector_type: string; /** Key of the customer to sync */ customer_key: string; /** ID of the connector customer to sync */ connector_customer_id?: (string | null) | undefined; /** Unique provider resource key of the connector to sync */ unique_provider_resource_key?: (string | null) | undefined; }; commonParams: {}; formData: {}; jsonResponse: { connector_sync: { status: string; message: string; }; }; maxDuration: undefined; }; '/seam/customer/v1/connectors/update': { route: '/seam/customer/v1/connectors/update'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the connector to update */ connector_id: string; /** ID of the connector customer to update (for global connectors like Cloudbeds) */ connector_customer_id?: string | undefined; /** Key identifying the customer */ customer_key?: string | undefined; /** Instance-specific configuration for the connector */ config: { [x: string]: unknown; }; }; commonParams: {}; formData: {}; jsonResponse: { connector: { connector_id: string; connector_type: string; status: 'active' | 'inactive' | 'error'; webhook_subscription?: { subscription_id: string; webhook_url: string; events: string[]; status: 'active' | 'inactive' | 'error'; } | undefined; error?: string | undefined; }; }; maxDuration: undefined; }; '/seam/customer/v1/customers/automations/get': { route: '/seam/customer/v1/customers/automations/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { automation: { access_rules?: { reservation_created?: { rule: 'reservation_created'; config: { access_methods: ('card' | 'mobile_key' | 'code')[]; method_issuance_strategy: 'first_available' | 'first_two_available' | 'all_available'; card_count_on_reservation_create?: number | undefined; instant_key_max_use_count?: number | undefined; /** * @deprecated Use `prefer_guest_phone_last_digits_as_code`.*/ prefer_guest_phone_last4_as_code?: boolean | undefined; /** 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. */ prefer_guest_phone_last_digits_as_code?: boolean | undefined; allow_shared_email_and_phone_across_user_identities?: boolean | undefined; access_starts_minutes_before_reservation?: number | undefined; access_ends_minutes_after_reservation?: number | undefined; }; } | undefined; reservation_time_updated?: { rule: 'reservation_time_updated'; config?: {} | undefined; } | undefined; reservation_spaces_updated?: { rule: 'reservation_spaces_updated'; config?: {} | undefined; } | undefined; reservation_deleted?: { rule: 'reservation_deleted'; config?: {} | undefined; } | undefined; space_name_updated?: { rule: 'space_name_updated'; config?: {} | undefined; } | undefined; user_identity_name_updated?: { rule: 'user_identity_name_updated'; config?: {} | undefined; } | undefined; staff_member_name_updated?: { rule: 'staff_member_name_updated'; config?: {} | undefined; } | undefined; staff_member_created?: { rule: 'staff_member_created'; config: { allow_shared_email_and_phone_across_user_identities?: boolean | undefined; }; } | undefined; } | undefined; climate_rules?: { rules: { reservation_created?: { occupied_preset_key?: string | undefined; automated_occupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; unoccupied_preset_key?: string | undefined; automated_unoccupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; precondition_minutes_before_reservation?: number | undefined; } | undefined; reservation_time_updated?: {} | undefined; reservation_deleted?: {} | undefined; }; } | undefined; sound_rules?: { rules: { reservation_created?: { on_check_in?: { minutes_before_check_in?: number | undefined; speakers?: { set_volume_to?: number | undefined; unmute?: boolean | undefined; play_chime?: boolean | undefined; play_favorite?: { favorite_id: string; shuffle?: boolean | undefined; } | undefined; play_audio_clip?: { /** Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself. */ audio_url: string; volume?: number | undefined; } | undefined; } | undefined; } | undefined; on_check_out?: { minutes_after_check_out?: number | undefined; speakers?: { pause_playback?: boolean | undefined; unmute?: boolean | undefined; reset_volume_to?: number | undefined; } | undefined; } | undefined; } | undefined; reservation_time_updated?: {} | undefined; reservation_spaces_updated?: {} | undefined; reservation_deleted?: {} | undefined; }; } | undefined; sensor_rules?: { rules: { noise_sensors?: { normal_hours: { noise_threshold_decibels: number; }; quiet_hours?: ({ /** Time of day as HH:00, in each noise sensor's own time zone. */ starts_daily_at: string; /** Time of day as HH:00, in each noise sensor's own time zone. */ ends_daily_at: string; noise_threshold_decibels: number; } | null) | undefined; /** 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. */ vacant?: ({ noise_threshold_decibels: number; minutes_after_check_out?: number | undefined; } | null) | undefined; } | undefined; }; } | undefined; pool_rules?: { rules: { reservation_created?: { /** Which water in the reservation's spaces to heat: pools, spas, or both. */ water_bodies: 'pools' | 'spas' | 'pools_and_spas'; on_heat_up: { minutes_before_check_in: number; heating_set_point_fahrenheit?: number | undefined; heating_set_point_celsius?: number | undefined; }; on_check_out: { minutes_after_check_out: number; turn_off: true; }; } | undefined; reservation_time_updated?: {} | undefined; reservation_spaces_updated?: {} | undefined; reservation_deleted?: {} | undefined; }; } | undefined; }; }; maxDuration: undefined; }; '/seam/customer/v1/customers/automations/update': { route: '/seam/customer/v1/customers/automations/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** Access automation rules configuration. */ access_rules?: { reservation_created?: ({ rule: 'reservation_created'; config: { access_methods: ('card' | 'mobile_key' | 'code')[]; method_issuance_strategy: 'first_available' | 'first_two_available' | 'all_available'; card_count_on_reservation_create?: number | undefined; instant_key_max_use_count?: number | undefined; /** * @deprecated Use `prefer_guest_phone_last_digits_as_code`.*/ prefer_guest_phone_last4_as_code?: boolean | undefined; /** 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. */ prefer_guest_phone_last_digits_as_code?: boolean | undefined; allow_shared_email_and_phone_across_user_identities?: boolean | undefined; access_starts_minutes_before_reservation?: number | undefined; access_ends_minutes_after_reservation?: number | undefined; }; } | null) | undefined; reservation_time_updated?: ({ rule: 'reservation_time_updated'; config?: {} | undefined; } | null) | undefined; reservation_spaces_updated?: ({ rule: 'reservation_spaces_updated'; config?: {} | undefined; } | null) | undefined; reservation_deleted?: ({ rule: 'reservation_deleted'; config?: {} | undefined; } | null) | undefined; space_name_updated?: ({ rule: 'space_name_updated'; config?: {} | undefined; } | null) | undefined; user_identity_name_updated?: ({ rule: 'user_identity_name_updated'; config?: {} | undefined; } | null) | undefined; staff_member_name_updated?: ({ rule: 'staff_member_name_updated'; config?: {} | undefined; } | null) | undefined; staff_member_created?: ({ rule: 'staff_member_created'; config: { allow_shared_email_and_phone_across_user_identities?: boolean | undefined; }; } | null) | undefined; } | undefined; /** Climate automation rules configuration. */ climate_rules?: { rules?: { reservation_created?: ({ occupied_preset_key?: string | undefined; automated_occupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; unoccupied_preset_key?: string | undefined; automated_unoccupied_preset?: { mode: 'heat' | 'cool' | 'auto'; heating_set_point_celsius?: number | undefined; heating_set_point_fahrenheit?: number | undefined; cooling_set_point_celsius?: number | undefined; cooling_set_point_fahrenheit?: number | undefined; fan_mode: 'on' | 'auto' | 'circulate'; is_override_allowed: boolean; max_override_period_minutes: number; } | undefined; precondition_minutes_before_reservation?: number | undefined; } | null) | undefined; reservation_time_updated?: ({} | null) | undefined; reservation_deleted?: ({} | null) | undefined; } | undefined; } | undefined; /** Sound automation rules configuration. */ sound_rules?: { rules?: { reservation_created?: ({ on_check_in?: { minutes_before_check_in?: number | undefined; speakers?: { set_volume_to?: number | undefined; unmute?: boolean | undefined; play_chime?: boolean | undefined; play_favorite?: { favorite_id: string; shuffle?: boolean | undefined; } | undefined; play_audio_clip?: { /** Public HTTPS URL of the MP3 or WAV file to play. The speaker downloads the file itself. */ audio_url: string; volume?: number | undefined; } | undefined; } | undefined; } | undefined; on_check_out?: { minutes_after_check_out?: number | undefined; speakers?: { pause_playback?: boolean | undefined; unmute?: boolean | undefined; reset_volume_to?: number | undefined; } | undefined; } | undefined; } | null) | undefined; reservation_time_updated?: ({} | null) | undefined; reservation_spaces_updated?: ({} | null) | undefined; reservation_deleted?: ({} | null) | undefined; } | undefined; } | undefined; /** Sensor automation rules configuration. */ sensor_rules?: { rules?: { noise_sensors?: ({ normal_hours: { noise_threshold_decibels: number; }; quiet_hours?: ({ /** Time of day as HH:00, in each noise sensor's own time zone. */ starts_daily_at: string; /** Time of day as HH:00, in each noise sensor's own time zone. */ ends_daily_at: string; noise_threshold_decibels: number; } | null) | undefined; /** 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. */ vacant?: ({ noise_threshold_decibels: number; minutes_after_check_out?: number | undefined; } | null) | undefined; } | null) | undefined; } | undefined; } | undefined; /** Pool heating automation rules configuration. */ pool_rules?: { rules?: { reservation_created?: ({ /** Which water in the reservation's spaces to heat: pools, spas, or both. */ water_bodies: 'pools' | 'spas' | 'pools_and_spas'; on_heat_up: { minutes_before_check_in: number; heating_set_point_fahrenheit?: number | undefined; heating_set_point_celsius?: number | undefined; }; on_check_out: { minutes_after_check_out: number; turn_off: true; }; } | null) | undefined; reservation_time_updated?: ({} | null) | undefined; reservation_spaces_updated?: ({} | null) | undefined; reservation_deleted?: ({} | null) | undefined; } | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/customers/get': { route: '/seam/customer/v1/customers/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Key of the customer that you want to get. */ customer_key: string; } | { /** ID of the customer that you want to get. */ customer_id: string; }; formData: {}; jsonResponse: { /** 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. */ customer: { /** Unique key for the customer within the workspace. */ customer_key: string; /** ID of the workspace associated with the customer. */ workspace_id: string; /** Date and time at which the customer was created. */ created_at: string; /** 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. */ customization_profile_id: string | null; /** 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. */ low_battery_alert_threshold: number | null; }; }; maxDuration: undefined; }; '/seam/customer/v1/customers/list': { route: '/seam/customer/v1/customers/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** String for which to search. Filters returned customers to include all records that satisfy a partial match using `customer_key`. */ search?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: ((string | undefined) | null) | undefined; }; formData: {}; jsonResponse: { customers: { /** Unique key for the customer within the workspace. */ customer_key: string; /** ID of the workspace associated with the customer. */ workspace_id: string; /** Date and time at which the customer was created. */ created_at: string; /** 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. */ customization_profile_id: string | null; /** 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. */ low_battery_alert_threshold: number | null; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/seam/customer/v1/customers/me': { route: '/seam/customer/v1/customers/me'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { customer: { customer_key: string; customization_profile_id: string | null; }; connector?: { connector_type: string; } | undefined; }; maxDuration: undefined; }; '/seam/customer/v1/customers/notifications/get': { route: '/seam/customer/v1/customers/notifications/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { notification_settings: { /** 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. */ low_battery_alert_threshold: number | null; /** Workspace-level low-battery alert threshold that applies when the customer has not set one. `null` means the device default applies. */ workspace_default_low_battery_alert_threshold: number | null; }; }; maxDuration: undefined; }; '/seam/customer/v1/customers/notifications/update': { route: '/seam/customer/v1/customers/notifications/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** 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. */ low_battery_alert_threshold?: (number | null) | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/customers/open_portal': { route: '/seam/customer/v1/customers/open_portal'; method: 'POST'; queryParams: {}; jsonBody: { /** The customer key to open a portal for. */ customer_key: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. With 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. Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */ magic_link: { /** URL for the magic link. */ url: string; /** Customer key for the magic link. */ customer_key: string; /** Date and time at which the magic link expires. */ expires_at: string; /** ID of the workspace associated with the magic link. */ workspace_id: string; /** Date and time at which the magic link was created. */ created_at: string; }; }; maxDuration: undefined; }; '/seam/customer/v1/encoders/list': { route: '/seam/customer/v1/encoders/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Optional filter to list encoders for a specific space. */ space_key?: string | undefined; }; formData: {}; jsonResponse: { encoders: { acs_encoder_id: string; display_name: string; acs_system_id: string; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/events/list': { route: '/seam/customer/v1/events/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space for which you want to list events. */ space_id: string; /** 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. */ since?: string | undefined; /** 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. */ between?: string[] | undefined; /** Type of the events that you want to list. */ event_type?: ('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') | undefined; /** Types of the events that you want to list. */ event_types?: ('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')[] | undefined; /** Numerical limit on the number of events to return. */ limit?: number; }; formData: {}; jsonResponse: { events: ({ /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.changed'; /** List of properties that changed on the access code. */ changed_properties?: { /** Name of the property that changed (e.g. `code`). */ property: string; /** Previous value of the property, or null if not set. */ from: string | null; /** New value of the property, or null if cleared. */ to: string | null; }[] | undefined; /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */ change_reason?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.name_changed'; /** Previous access code name configuration. */ from: { /** Previous name of the access code. */ name: string | null; }; /** New access code name configuration. */ to: { /** New name of the access code. */ name: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.code_changed'; /** Previous pin code configuration. */ from: { /** Previous pin code. */ code: string | null; }; /** New pin code configuration. */ to: { /** New pin code. */ code: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.time_frame_changed'; /** Previous time frame configuration. */ from: { /** Previous start time. */ starts_at: string | null; /** Previous end time. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time. */ starts_at: string | null; /** New end time. */ ends_at: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.mutations_requested'; /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */ requested_mutations: { /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */ mutation_code: 'updating_name' | 'updating_code' | 'updating_time_frame' | 'deleting' | 'creating' | 'deferring_creation'; /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ from?: { [x: string]: unknown; } | undefined; /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ to?: { [x: string]: unknown; } | undefined; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.scheduled_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.set_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.removed_from_device'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_setting_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_set_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.issued'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_issuing'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_issue'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_update'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_delete'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted'; /** Code for the affected access code. */ code: string | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_removing_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_remove_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.modified_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.backup_access_code_pulled'; /** ID of the backup access code that was pulled from the pool. */ backup_access_code_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.failed_to_convert_to_managed'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_all_doors'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_door'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_to_door_lost'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_times_changed'; /** Key of the affected Access Grant (if present). */ access_grant_key?: string | undefined; /** The new start time for the access grant. */ starts_at?: string | undefined; /** The new end time for the access grant. */ ends_at?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.could_not_create_requested_access_methods'; /** Description of why the access methods could not be created. */ error_message: string; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.issued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.revoked'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.card_encoding_required'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.deleted'; /** 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. */ failed_to_delete_access_code_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.reissued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.delay_in_issuing'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.failed_to_issue'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.disconnected'; /** Errors associated with the access control system. */ acs_system_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access control system. */ acs_system_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.issued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.reissued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.invalidated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access group. */ acs_access_group_id: string; event_type: 'acs_access_group.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected client session. */ client_session_id: string; event_type: 'client_session.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.connected'; /** ID of the Connect Webview associated with the event. */ connect_webview_id?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.created'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.successful_login'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.deleted'; /** */ connected_account_type?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync_after_reconnection'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.reauthorization_requested'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_succeeded'; /** ID of the connected account associated with the event. */ connected_account_id: string; /** Custom metadata of the connected account; present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** The customer key associated with this connect webview, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.converted_to_unmanaged'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.tampered'; /** Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state. */ is_detached_from_mounting_plate?: boolean | undefined; /** Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state. */ is_casing_tampered_with?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.low_battery'; /** Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. * @deprecated Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery.*/ battery_level: number; /** Number in the range 0 to 1.0 indicating the affected device's own battery level, when known. */ device_battery_level?: number | undefined; /** 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. */ accessory_keypad_battery_level?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.battery_status_changed'; /** Battery status of the affected device, calculated from the numeric `battery_level` value. */ battery_status: 'critical' | 'low' | 'good' | 'full'; /** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */ battery_level: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.deleted'; /** 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. */ device_name?: (string | null) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_no_longer_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_activated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_became_flaky'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_stabilized'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required.resolved'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'noise_sensor.noise_threshold_triggered'; /** Detected noise level in decibels. */ noise_level_decibels?: number | undefined; /** Detected noise level in Noiseaware Noise Risk Score (NRS). */ noise_level_nrs?: number | undefined; /** ID of the noise threshold that was triggered. */ noise_threshold_id?: string | undefined; /** Name of the noise threshold that was triggered. */ noise_threshold_name?: string | undefined; /** Metadata from Noiseaware. */ noiseaware_metadata?: { [x: string]: unknown; } | undefined; /** Metadata from Minut. */ minut_metadata?: { [x: string]: unknown; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.locked'; /** ID of the access code that was used to lock the device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the lock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the lock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the lock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the lock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.unlocked'; /** ID of the access code that was used to unlock the affected device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the unlock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the unlock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the unlock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the unlock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.access_denied'; /** ID of the access code that was used in the unlock attempts. */ access_code_id?: string | undefined; /** ID of the user identity associated with the access-denied event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the access-denied event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the access-denied event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the access-denied event. */ acs_entrance_id?: string | undefined; /** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */ reason?: { /** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */ reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error' | 'connection_error'; /** Human-readable explanation of why access was denied. */ message: string; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.jammed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_opened'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_closed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.climate_preset_activated'; /** ID of the thermostat schedule that prompted the affected climate preset to be activated. */ thermostat_schedule_id: string | null; /** Key of the climate preset that was activated. */ climate_preset_key: string; /** Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat. */ is_fallback_climate_preset: boolean; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat_schedule.climate_preset_activation_may_fail'; /** ID of the thermostat schedule whose climate preset activation may fail. */ thermostat_schedule_id: string; /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_starts_at: string; /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_ends_at: string; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_no_longer_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_reached_set_point'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_celsius?: number | undefined; /** Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_changed'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_changed'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_reached_set_point'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; /** Desired water temperature, in °C, defined by the heating set point of the affected pool or spa. */ desired_temperature_celsius: number; /** Desired water temperature, in °F, defined by the heating set point of the affected pool or spa. */ desired_temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** New heating mode of the affected pool or spa. Present only if the mode changed. */ controller_mode?: ('heat' | 'off') | undefined; /** New heating set point, in °C, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_celsius?: number | undefined; /** New heating set point, in °F, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.name_changed'; /** The new name of the affected device. */ device_name: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'camera.activated'; /** Whether motion detection activated the camera, if known. */ is_motion_detected?: boolean | undefined; /** Sub-type of motion detected, if available. */ motion_sub_type?: ('human' | 'vehicle' | 'package' | 'other') | undefined; /** URL to a thumbnail image captured at the time of activation. */ image_url?: string | undefined; /** URL to a short video clip captured at the time of activation. */ video_url?: string | undefined; /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.doorbell_rang'; /** URL to a thumbnail image captured at the time the doorbell was pressed. */ image_url?: string | undefined; /** URL to a short video clip captured at the time the doorbell was pressed. */ video_url?: string | undefined; /** 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. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected enrollment automation. */ enrollment_automation_id: string; event_type: 'enrollment_automation.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected phone device. */ device_id: string; /** Custom metadata of the device; present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'phone.deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.device_membership_changed'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices currently attached to the space. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.created'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was created. */ device_ids: string[]; /** IDs of all ACS entrances attached to the space when it was created. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.deleted'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was deleted. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space when it was deleted. */ acs_entrance_ids: string[]; })[]; }; maxDuration: undefined; }; '/seam/customer/v1/portals/get': { route: '/seam/customer/v1/portals/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer portal ID. */ customer_portal_id: string; }; formData: {}; jsonResponse: { customer_portal: { features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: string[] | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: string[] | undefined; }; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean; /** Configuration for event type filtering in the manage feature. */ events?: { /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined; /** 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. */ device_management_confirmation?: { /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined; }; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean; }; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean; }; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean; }; }; /** Whether the portal is embedded in another application. */ is_embedded?: boolean; /** 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. */ read_only?: boolean; /** Configuration for the landing page when the portal loads. */ landing_page?: { manage?: (({ space_key: string; } | { property_key: string; } | { room_key: string; } | { common_area_key: string; } | { unit_key: string; } | { facility_key: string; } | { building_key: string; } | { listing_key: string; } | { property_listing_key: string; } | { site_key: string; }) | ({ reservation_key: string; } | { booking_key: string; } | { access_grant_key: string; })) | undefined; } | undefined; /** The locale to use for the portal. */ locale?: ('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined; /** Whether to exclude the option to select a locale within the portal UI. */ exclude_locale_picker?: boolean; /** The ID of the customization profile to use for the portal. */ customization_profile_id?: string | undefined; /** Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata. */ customer_resources_filters?: { /** The custom_metadata field name to filter on. */ field: string; /** The comparison operation. Currently only '=' is supported. */ operation: '='; /** The value to compare against. */ value: string | boolean; }[] | undefined; /** Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links. */ navigation_mode?: 'full' | 'restricted'; /** Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. */ deep_link?: ({ resource_type: 'reservation'; resource_key: string; } | { resource_type: 'space'; resource_key: string; } | { resource_type: 'device'; resource_id: string; } | { resource_type: 'acs_entrance'; resource_id: string; }) | undefined; /** Business vertical of the customer portal. */ business_vertical?: ('neutral' | 'short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined; feature_flags?: { [x: string]: boolean; } | undefined; }; }; maxDuration: undefined; }; '/seam/customer/v1/portals/update': { route: '/seam/customer/v1/portals/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the customer portal to update. */ customer_portal_id: string; /** Partial portal configuration to merge with the existing configuration. */ portal_configuration: { /** Whether the portal is embedded in another application. */ is_embedded?: boolean | undefined; /** 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. */ read_only?: boolean | undefined; /** Configuration for the landing page when the portal loads. */ landing_page?: ({ manage?: (({ space_key: string; } | { property_key: string; } | { room_key: string; } | { common_area_key: string; } | { unit_key: string; } | { facility_key: string; } | { building_key: string; } | { listing_key: string; } | { property_listing_key: string; } | { site_key: string; }) | ({ reservation_key: string; } | { booking_key: string; } | { access_grant_key: string; })) | undefined; } | undefined) | undefined; /** The locale to use for the portal. */ locale?: (('en-US' | 'pt-PT' | 'fr-FR' | 'it-IT' | 'es-ES' | 'de-DE' | 'nl-NL' | 'el-GR' | 'pl-PL' | 'ru-RU') | undefined) | undefined; /** Whether to exclude the option to select a locale within the portal UI. */ exclude_locale_picker?: boolean | undefined; /** The ID of the customization profile to use for the portal. */ customization_profile_id?: (string | undefined) | undefined; /** Filter configuration for resources based on their custom_metadata. Each filter specifies a field, operation, and value to match against resource custom_metadata. */ customer_resources_filters?: ({ /** The custom_metadata field name to filter on. */ field: string; /** The comparison operation. Currently only '=' is supported. */ operation: '='; /** The value to compare against. */ value: string | boolean; }[] | undefined) | undefined; /** Navigation mode for the portal. 'restricted' tells frontend to hide navigation UI, typically used for embedded deep links. */ navigation_mode?: ('full' | 'restricted') | undefined; /** Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource. */ deep_link?: (({ resource_type: 'reservation'; resource_key: string; } | { resource_type: 'space'; resource_key: string; } | { resource_type: 'device'; resource_id: string; } | { resource_type: 'acs_entrance'; resource_id: string; }) | undefined) | undefined; /** Customer portal features. Settings you omit use the Seam default. */ features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; }; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/reservations/get': { route: '/seam/customer/v1/reservations/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** The customer_key identifying the customer. Required when not using client_session_with_customer auth. */ customer_key?: string | undefined; /** ID of the reservation to retrieve. */ reservation_id?: string | undefined; /** Key of the reservation to retrieve. */ reservation_key?: string | undefined; }; formData: {}; jsonResponse: { reservation: { reservation_id: string; reservation_key: string; name: string | null; starts_at: string | null; ends_at: string | null; created_at: string; is_resource_syncing: boolean; guest_name: string | null; guest: { guest_key: string; name: string | null; email_address: string | null; phone_number: string | null; user_identity_id: string | null; is_resource_syncing: boolean; } | null; spaces: { space_id: string | null; space_key: string; name: string | null; }[]; access_grant_id: string | null; access_methods: { access_method_id: string; access_grant_id: string; mode: string; is_issued: boolean; is_card_encoding_required?: boolean | undefined; code?: (string | null) | undefined; instant_key_url?: string | undefined; }[]; connected_account_id: string | null; /** Key of the customer the reservation belongs to, or null when it belongs to none. */ customer_key: string | null; last_automation_result: { success: boolean; rule: string; actions: { action_type: 'create' | 'update' | 'delete' | 'skip'; resource_type: string; access_grant_id?: string | undefined; skip_reason?: string | undefined; message?: string | undefined; }[]; error?: string | undefined; message?: string | undefined; created_at: string; } | null; /** 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. */ parent_reservation_id: string | null; /** Key of the parent reservation when this reservation is a sub-reservation. Null otherwise. */ parent_reservation_key: string | null; /** 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. */ is_primary: boolean | null; /** 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. */ sub_reservations: { sub_reservation_id: string; sub_reservation_key: string; /** Key of the reservation this sub-reservation belongs to. */ parent_reservation_key: string; /** 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. */ is_primary: boolean; name: string | null; starts_at: string | null; ends_at: string | null; is_resource_syncing: boolean; access_grant_id: string | null; spaces: { space_id: string | null; space_key: string; name: string | null; }[]; access_methods: { access_method_id: string; mode: string; is_issued: boolean; }[]; }[]; }; }; maxDuration: undefined; }; '/seam/customer/v1/reservations/list': { route: '/seam/customer/v1/reservations/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** The customer_key identifying the customer. Required when not using client_session_with_customer auth. */ customer_key?: string | undefined; /** Filter reservations by space key. */ space_key?: string | undefined; /** Filter reservations by space ID (UUID). */ space_id?: string | undefined; /** Filter reservations by the connected account whose connector discovered them. */ connected_account_id?: string | undefined; /** Filter reservations by the guest user identity ID. */ user_identity_id?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Timestamp by which to limit returned reservations. Returns reservations created before this timestamp. */ created_before?: Date | undefined; /** Timestamp by which to limit returned reservations. Returns reservations created after this timestamp. */ created_after?: Date | undefined; /** Lower and upper timestamps to filter reservations whose time range overlaps with the given interval. */ between?: string[] | undefined; /** 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. */ search?: string | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: ((string | undefined) | null) | undefined; }; formData: {}; jsonResponse: { reservations: { reservation_id: string; reservation_key: string; name: string | null; starts_at: string | null; ends_at: string | null; created_at: string; is_resource_syncing: boolean; guest_name: string | null; warnings: { warning_code: string; message: string; created_at: string; }[]; pending_mutations: { mutation_code: string; message: string; created_at: string; }[]; access_methods: { access_method_id: string; mode: string; is_issued: boolean; warnings: { warning_code: string; message: string; created_at: string; }[]; pending_mutations: { mutation_code: string; message: string; created_at: string; }[]; }[]; spaces: { space_id: string | null; space_key: string; name: string | null; }[]; connected_account_id: string | null; /** Key of the customer the reservation belongs to, or null when it belongs to none. */ customer_key: string | null; last_automation_result: { success: boolean; rule: string; actions: { action_type: 'create' | 'update' | 'delete' | 'skip'; resource_type: string; access_grant_id?: string | undefined; skip_reason?: string | undefined; message?: string | undefined; }[]; error?: string | undefined; message?: string | undefined; created_at: string; } | null; /** 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. */ sub_reservations: { sub_reservation_id: string; sub_reservation_key: string; /** Key of the reservation this sub-reservation belongs to. */ parent_reservation_key: string; /** 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. */ is_primary: boolean; name: string | null; starts_at: string | null; ends_at: string | null; is_resource_syncing: boolean; access_grant_id: string | null; spaces: { space_id: string | null; space_key: string; name: string | null; }[]; access_methods: { access_method_id: string; mode: string; is_issued: boolean; }[]; }[]; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/seam/customer/v1/reservations/list_access_grants': { route: '/seam/customer/v1/reservations/list_access_grants'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** The customer_key identifying the customer. Required when not using client_session_with_customer auth. */ customer_key?: string | undefined; /** The reservation_key to filter access grants by. */ reservation_key: string; }; formData: {}; jsonResponse: { access_grants: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/settings/business_verticals/list': { route: '/seam/customer/v1/settings/business_verticals/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { business_verticals: ('neutral' | 'short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours')[]; }; maxDuration: undefined; }; '/seam/customer/v1/settings/get': { route: '/seam/customer/v1/settings/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** Business vertical of the customer portal. */ business_vertical?: ('neutral' | 'short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined; slug?: (string | null) | undefined; }; maxDuration: undefined; }; '/seam/customer/v1/settings/update': { route: '/seam/customer/v1/settings/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** Business vertical to set on the workspace. */ business_vertical?: ('neutral' | 'short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined; /** Slug to set on the workspace. */ slug?: (string | null) | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/settings/vertical_resource_aliases/get': { route: '/seam/customer/v1/settings/vertical_resource_aliases/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { vertical_resource_aliases: { /** Primary space alias for this vertical. */ space: { /** The key alias for a single resource. */ resource_key: string; /** Human-readable label for a single resource. */ resource_label: string; /** The key alias for a collection of resources. */ collection_key: string; /** Human-readable label for a collection of resources. */ collection_label: string; }; /** Additional space aliases relevant to this vertical. */ additional_spaces: { /** The key alias for a single resource. */ resource_key: string; /** Human-readable label for a single resource. */ resource_label: string; /** The key alias for a collection of resources. */ collection_key: string; /** Human-readable label for a collection of resources. */ collection_label: string; }[]; /** Primary user identity alias for this vertical. */ user_identity: { /** The key alias for a single resource. */ resource_key: string; /** Human-readable label for a single resource. */ resource_label: string; /** The key alias for a collection of resources. */ collection_key: string; /** Human-readable label for a collection of resources. */ collection_label: string; }; /** Primary access grant alias for this vertical. */ access_grant: { /** The key alias for a single resource. */ resource_key: string; /** Human-readable label for a single resource. */ resource_label: string; /** The key alias for a collection of resources. */ collection_key: string; /** Human-readable label for a collection of resources. */ collection_label: string; }; }; }; maxDuration: undefined; }; '/seam/customer/v1/spaces/create': { route: '/seam/customer/v1/spaces/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Name of the space that you want to create. */ name: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of the devices that you want to add to the new space. */ device_ids?: string[] | undefined; /** IDs of the entrances that you want to add to the new space. */ acs_entrance_ids?: string[] | undefined; /** 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. */ connected_account_ids?: string[] | undefined; /** 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. */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Space key of the parent space for this space. */ parent_space_key?: string | undefined; /** Name of the parent space for this space. */ parent_space_name?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ space: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }; }; maxDuration: undefined; }; '/seam/customer/v1/spaces/list': { route: '/seam/customer/v1/spaces/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`. */ search?: string | undefined; /** Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account. */ connected_account_id?: string | undefined; /** Filter spaces by space_key. */ space_key?: string | undefined; /** Filter spaces to only include those whose parent space has the specified `parent_space_id`. */ parent_space_id?: string | undefined; /** Filter spaces to only include those whose parent space has the specified `parent_space_key`. */ parent_space_key?: string | undefined; }; formData: {}; jsonResponse: { spaces: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/spaces/list_reservations': { route: '/seam/customer/v1/spaces/list_reservations'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Filter reservations by issued status. */ issued_status?: ('issued' | 'pending') | undefined; /** Filter reservations by space key. */ space_key: string; }; formData: {}; jsonResponse: { reservations: { reservation_id: string; reservation_key: string; name: string | null; starts_at: string | null; ends_at: string | null; created_at: string; guest_name: string | null; has_issued_access: boolean; access_methods: { access_method_id: string; mode: string; is_issued: boolean; }[]; last_automation_result: { success: boolean; rule: string; actions: { action_type: 'create' | 'update' | 'delete' | 'skip'; resource_type: string; access_grant_id?: string | undefined; skip_reason?: string | undefined; message?: string | undefined; }[]; error?: string | undefined; message?: string | undefined; created_at: string; } | null; /** 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. */ parent_reservation_id: string | null; /** Key of the parent reservation when this reservation is a sub-reservation. Null otherwise. */ parent_reservation_key: string | null; /** 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. */ is_primary: boolean | null; }[]; }; maxDuration: undefined; }; '/seam/customer/v1/spaces/push_common_areas': { route: '/seam/customer/v1/spaces/push_common_areas'; method: 'POST'; queryParams: {}; jsonBody: { common_areas?: { name: string; }[] | undefined; spaces?: { name: string; common_areas: { name: string; }[]; }[] | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/customer/v1/staff_members/get': { route: '/seam/customer/v1/staff_members/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Key of staff member to get. */ staff_member_key: string; }; formData: {}; jsonResponse: { /** 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. */ access_grant?: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; } | undefined; spaces: { space_key: string; child_space_keys?: string[] | undefined; }[]; /** Represents a staff member for a specific customer. */ staff_member: { /** Your unique identifier for the staff. */ staff_member_key: string; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Your display name for this user identity resource. */ name: string; /** List of unique identifiers for the spaces the staff member is associated with. */ space_keys?: string[] | undefined; user_identity_id?: string | undefined; }; }; maxDuration: undefined; }; '/seam/customer/v1/staff_members/list': { route: '/seam/customer/v1/staff_members/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Filter staff members by space key. */ space_key?: string | undefined; /** Filter staff members by space ID (UUID). */ space_id?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Timestamp by which to limit returned staff members. Returns staff members created before this timestamp. */ created_before?: Date | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: ((string | undefined) | null) | undefined; }; formData: {}; jsonResponse: { staff_members: { /** Your unique identifier for the staff. */ staff_member_key: string; /** Phone number associated with the user identity. */ phone_number?: string | undefined; /** Email address associated with the user identity. */ email_address?: string | undefined; /** Your display name for this user identity resource. */ name: string; /** List of unique identifiers for the spaces the staff member is associated with. */ space_keys?: string[] | undefined; user_identity_id?: string | undefined; access_grant?: { starts_at: string; ends_at: string | null; created_at: string; } | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/seam/instant_key/v1/client_sessions/exchange_short_code': { route: '/seam/instant_key/v1/client_sessions/exchange_short_code'; method: 'POST'; queryParams: {}; jsonBody: { /** Short code that you want to exchange for a client session token. */ short_code: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. You create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides. When 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`. A 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. See 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). */ client_session: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }; }; maxDuration: undefined; }; '/seam/instant_key/v1/preview/get': { route: '/seam/instant_key/v1/preview/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** The short code of the instant key to preview. */ instant_key_url: string; }; formData: {}; jsonResponse: { /** Represents a preview of an Instant Key with hotel, guest, and access information. */ instant_key_preview: { shortcode: string; hotel: { hotel_name: string; primary_color: string; accent_color: string; secondary_color: string; logo_url?: string | undefined; verified: boolean; }; guest: { first_name: string; last_name: string; full_name: string; email: string; check_in_date: string; check_out_date: string; }; room: { room_number: string; room_type: string; floor: number; }; access: { name: string; icon: string; hours?: string | undefined; location?: string | undefined; available: boolean; }[]; key_status: 'ready' | 'expired' | 'used'; support_phone: string; support_email: string; created_at: string; updated_at: string; expires_at: string; }; }; maxDuration: undefined; }; '/seam/mcp/v1/create_ro_token': { route: '/seam/mcp/v1/create_ro_token'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the workspace the token will be bound to. */ workspace_id: string; /** Identity of the automation minting the token (e.g. an agent session ID), recorded for auditing. */ created_by?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { support_read_only_token: { /** Support read-only token to use as a Bearer token. */ token: string; /** ID of the workspace the token is bound to. */ workspace_id: string; /** Date and time at which the token was created. */ created_at: string; /** Date and time at which the token expires. Tokens live for one hour. */ expires_at: string; }; }; maxDuration: undefined; }; '/seam/mobile_sdk/v1/acs/credentials/list': { route: '/seam/mobile_sdk/v1/acs/credentials/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { acs_credentials: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }[]; }; maxDuration: undefined; }; '/seam/mobile_sdk/v1/phone_sessions/get_or_create': { route: '/seam/mobile_sdk/v1/phone_sessions/get_or_create'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the custom SDK installation that you want to use for the new session. */ custom_sdk_installation_id: string; /** Phone operating system that you want to use for the new session. */ phone_os: 'ios' | 'android'; /** Phone device metadata that you want to use for the new session. */ phone_device_metadata?: { os_version?: string | undefined; manufacturer?: string | undefined; model?: string | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** Represents a mobile phone session. */ phone_session: { /** Phone provider sessions. */ provider_sessions: { /** Represents a mobile phone registration. */ phone_registration: { /** Registration ID for the phone. */ phone_registration_id: string; /** Provider state for the phone. */ provider_state: { [x: string]: unknown; } | null; /** Provider name for the phone. */ provider_name: string | null; /** Indicates whether the phone is being activated. */ is_being_activated: boolean; }; /** Access system credentials associated with the phone provider session. */ acs_credentials: { /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; acs_credential_id: string | null; acs_entrances: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[]; }[]; }[]; /** User identity. */ user_identity: { /** ID of the user identity. */ user_identity_id: string; /** Unique key for the user identity. */ user_identity_key: string | null; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }; /** Workspace ID. */ workspace_id: string; /** Whether the workspace is in sandbox mode. */ is_sandbox_workspace: boolean; }; }; maxDuration: undefined; }; '/seam/mobile_sdk/v1/report_salto_space_audit_trail': { route: '/seam/mobile_sdk/v1/report_salto_space_audit_trail'; method: 'POST'; queryParams: {}; jsonBody: { acs_system_id: string; salto_space_metadata: { justin_mobile_sdk_audit_trail_data: string; }; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/partner/v1/building_blocks/spaces/auto_map': { route: '/seam/partner/v1/building_blocks/spaces/auto_map'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which to auto-map spaces. */ customer_key?: string | undefined; /** Collection key. */ collection_key?: string | undefined; /** Connected account to scope auto-mapping to. Filters partner resources by the matching connector and limits available devices/entrances to this account. */ connected_account_id?: string | undefined; }; formData: {}; jsonResponse: { spaces: { name: string; partner_resource_key: string; parent_partner_resource_key?: string | undefined; devices: { device_id: string; device_type: string; name: string; connected_account_id: string; }[]; acs_entrances: { acs_entrance_id: string; name: string; connected_account_id: string; }[]; needs_review?: boolean | undefined; is_draft?: boolean | undefined; is_common_area?: boolean | undefined; connected_account_ids: string[]; }[]; }; maxDuration: undefined; }; '/seam/webhooks/[provider]/[subscription_id]': { route: '/seam/webhooks/[provider]/[subscription_id]'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/seam/webhooks/v1/preview_event': { route: '/seam/webhooks/v1/preview_event'; method: 'POST'; queryParams: {}; jsonBody: { /** Type of the event that you want to preview. */ event_type: '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'; /** Event payload fields that you want to set explicitly. Each field that you provide overrides the value that Seam would otherwise fill in. */ payload?: { [x: string]: unknown; }; }; commonParams: {}; formData: {}; jsonResponse: { /** Event payload that `simulate_event` would send for this event type. */ payload: { [x: string]: unknown; }; /** Payload fields that Seam set to a real resource in your workspace. */ resolved_fields: string[]; /** 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. */ subscribed_webhook_count: number | null; /** Payload fields that Seam set to a placeholder value because your workspace has no matching resource and you did not provide one. */ synthesized_fields: string[]; }; maxDuration: undefined; }; '/seam/webhooks/v1/simulate_event': { route: '/seam/webhooks/v1/simulate_event'; method: 'POST'; queryParams: {}; jsonBody: { /** Type of the event that you want to send to your webhooks. */ event_type: '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'; /** Event payload fields that you want to set explicitly. Each field that you provide overrides the value that Seam would otherwise fill in. */ payload?: { [x: string]: unknown; }; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. As 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. */ event: { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.changed'; /** List of properties that changed on the access code. */ changed_properties?: { /** Name of the property that changed (e.g. `code`). */ property: string; /** Previous value of the property, or null if not set. */ from: string | null; /** New value of the property, or null if cleared. */ to: string | null; }[] | undefined; /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */ change_reason?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.name_changed'; /** Previous access code name configuration. */ from: { /** Previous name of the access code. */ name: string | null; }; /** New access code name configuration. */ to: { /** New name of the access code. */ name: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.code_changed'; /** Previous pin code configuration. */ from: { /** Previous pin code. */ code: string | null; }; /** New pin code configuration. */ to: { /** New pin code. */ code: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.time_frame_changed'; /** Previous time frame configuration. */ from: { /** Previous start time. */ starts_at: string | null; /** Previous end time. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time. */ starts_at: string | null; /** New end time. */ ends_at: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.mutations_requested'; /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */ requested_mutations: { /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */ mutation_code: 'updating_name' | 'updating_code' | 'updating_time_frame' | 'deleting' | 'creating' | 'deferring_creation'; /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ from?: { [x: string]: unknown; } | undefined; /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ to?: { [x: string]: unknown; } | undefined; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.scheduled_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.set_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.removed_from_device'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_setting_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_set_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.issued'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_issuing'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_issue'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_update'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_delete'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted'; /** Code for the affected access code. */ code: string | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_removing_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_remove_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.modified_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.backup_access_code_pulled'; /** ID of the backup access code that was pulled from the pool. */ backup_access_code_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.failed_to_convert_to_managed'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_all_doors'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_door'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_to_door_lost'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_times_changed'; /** Key of the affected Access Grant (if present). */ access_grant_key?: string | undefined; /** The new start time for the access grant. */ starts_at?: string | undefined; /** The new end time for the access grant. */ ends_at?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.could_not_create_requested_access_methods'; /** Description of why the access methods could not be created. */ error_message: string; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.issued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.revoked'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.card_encoding_required'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.deleted'; /** 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. */ failed_to_delete_access_code_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.reissued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.delay_in_issuing'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.failed_to_issue'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.disconnected'; /** Errors associated with the access control system. */ acs_system_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access control system. */ acs_system_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.issued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.reissued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.invalidated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access group. */ acs_access_group_id: string; event_type: 'acs_access_group.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected client session. */ client_session_id: string; event_type: 'client_session.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.connected'; /** ID of the Connect Webview associated with the event. */ connect_webview_id?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.created'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.successful_login'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.deleted'; /** */ connected_account_type?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync_after_reconnection'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.reauthorization_requested'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_succeeded'; /** ID of the connected account associated with the event. */ connected_account_id: string; /** Custom metadata of the connected account; present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** The customer key associated with this connect webview, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.converted_to_unmanaged'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.tampered'; /** Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state. */ is_detached_from_mounting_plate?: boolean | undefined; /** Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state. */ is_casing_tampered_with?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.low_battery'; /** Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. * @deprecated Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery.*/ battery_level: number; /** Number in the range 0 to 1.0 indicating the affected device's own battery level, when known. */ device_battery_level?: number | undefined; /** 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. */ accessory_keypad_battery_level?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.battery_status_changed'; /** Battery status of the affected device, calculated from the numeric `battery_level` value. */ battery_status: 'critical' | 'low' | 'good' | 'full'; /** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */ battery_level: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.deleted'; /** 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. */ device_name?: (string | null) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_no_longer_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_activated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_became_flaky'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_stabilized'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required.resolved'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'noise_sensor.noise_threshold_triggered'; /** Detected noise level in decibels. */ noise_level_decibels?: number | undefined; /** Detected noise level in Noiseaware Noise Risk Score (NRS). */ noise_level_nrs?: number | undefined; /** ID of the noise threshold that was triggered. */ noise_threshold_id?: string | undefined; /** Name of the noise threshold that was triggered. */ noise_threshold_name?: string | undefined; /** Metadata from Noiseaware. */ noiseaware_metadata?: { [x: string]: unknown; } | undefined; /** Metadata from Minut. */ minut_metadata?: { [x: string]: unknown; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.locked'; /** ID of the access code that was used to lock the device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the lock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the lock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the lock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the lock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.unlocked'; /** ID of the access code that was used to unlock the affected device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the unlock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the unlock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the unlock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the unlock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.access_denied'; /** ID of the access code that was used in the unlock attempts. */ access_code_id?: string | undefined; /** ID of the user identity associated with the access-denied event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the access-denied event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the access-denied event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the access-denied event. */ acs_entrance_id?: string | undefined; /** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */ reason?: { /** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */ reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error' | 'connection_error'; /** Human-readable explanation of why access was denied. */ message: string; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.jammed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_opened'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_closed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.climate_preset_activated'; /** ID of the thermostat schedule that prompted the affected climate preset to be activated. */ thermostat_schedule_id: string | null; /** Key of the climate preset that was activated. */ climate_preset_key: string; /** Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat. */ is_fallback_climate_preset: boolean; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat_schedule.climate_preset_activation_may_fail'; /** ID of the thermostat schedule whose climate preset activation may fail. */ thermostat_schedule_id: string; /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_starts_at: string; /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_ends_at: string; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_no_longer_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_reached_set_point'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_celsius?: number | undefined; /** Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_changed'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_changed'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_reached_set_point'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; /** Desired water temperature, in °C, defined by the heating set point of the affected pool or spa. */ desired_temperature_celsius: number; /** Desired water temperature, in °F, defined by the heating set point of the affected pool or spa. */ desired_temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** New heating mode of the affected pool or spa. Present only if the mode changed. */ controller_mode?: ('heat' | 'off') | undefined; /** New heating set point, in °C, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_celsius?: number | undefined; /** New heating set point, in °F, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.name_changed'; /** The new name of the affected device. */ device_name: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'camera.activated'; /** Whether motion detection activated the camera, if known. */ is_motion_detected?: boolean | undefined; /** Sub-type of motion detected, if available. */ motion_sub_type?: ('human' | 'vehicle' | 'package' | 'other') | undefined; /** URL to a thumbnail image captured at the time of activation. */ image_url?: string | undefined; /** URL to a short video clip captured at the time of activation. */ video_url?: string | undefined; /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.doorbell_rang'; /** URL to a thumbnail image captured at the time the doorbell was pressed. */ image_url?: string | undefined; /** URL to a short video clip captured at the time the doorbell was pressed. */ video_url?: string | undefined; /** 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. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected enrollment automation. */ enrollment_automation_id: string; event_type: 'enrollment_automation.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected phone device. */ device_id: string; /** Custom metadata of the device; present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'phone.deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.device_membership_changed'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices currently attached to the space. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.created'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was created. */ device_ids: string[]; /** IDs of all ACS entrances attached to the space when it was created. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.deleted'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was deleted. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space when it was deleted. */ acs_entrance_ids: string[]; }; simulation: { /** Payload fields that Seam set to a real resource in your workspace. */ resolved_fields: string[]; /** 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. */ subscribed_webhook_count: number | null; /** Payload fields that Seam set to a placeholder value because your workspace has no matching resource and you did not provide one. */ synthesized_fields: string[]; }; }; maxDuration: undefined; }; '/seam/wizard/v1/session': { route: '/seam/wizard/v1/session'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { wizard_session: { token: string; expires_at: string; onboarding: { org_type: string | null; primary_goal: string | null; use_case: string | null; build_target: string | null; embed_customer_portal: boolean | null; device_categories: string[] | null; } | null; }; }; maxDuration: undefined; }; '/spaces/add_acs_entrances': { route: '/spaces/add_acs_entrances'; method: 'POST' | 'PUT'; queryParams: {}; jsonBody: { /** ID of the space to which you want to add entrances. */ space_id: string; /** IDs of the entrances that you want to add to the space. */ acs_entrance_ids: string[]; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/spaces/add_connected_account': { route: '/spaces/add_connected_account'; method: 'POST' | 'PUT'; queryParams: {}; jsonBody: { /** ID of the space to which you want to add the connected account. */ space_id: string; /** ID of the connected account that you want to add to the space. */ connected_account_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/spaces/add_devices': { route: '/spaces/add_devices'; method: 'POST' | 'PUT'; queryParams: {}; jsonBody: { /** ID of the space to which you want to add devices. */ space_id: string; /** IDs of the devices that you want to add to the space. */ device_ids: string[]; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/spaces/create': { route: '/spaces/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Name of the space that you want to create. */ name: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of the devices that you want to add to the new space. */ device_ids?: string[] | undefined; /** IDs of the entrances that you want to add to the new space. */ acs_entrance_ids?: string[] | undefined; /** 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. */ connected_account_ids?: string[] | undefined; /** Customer key for which you want to create the space. */ customer_key?: string | undefined; /** Reservation/stay-related defaults for the space. */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ space: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }; }; maxDuration: undefined; }; '/spaces/delete': { route: '/spaces/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space that you want to delete. */ space_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/spaces/get': { route: '/spaces/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space that you want to get. */ space_id: string; } | { /** Unique key of the space that you want to get. */ space_key: string; }; formData: {}; jsonResponse: { /** 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. */ space: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }; }; maxDuration: undefined; }; '/spaces/get_related': { route: '/spaces/get_related'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** IDs of the spaces that you want to get along with their related resources. */ space_ids?: string[] | undefined; /** Keys of the spaces that you want to get along with their related resources. */ space_keys?: string[] | undefined; include?: ('spaces' | 'devices' | 'acs_entrances' | 'connected_accounts' | 'acs_systems' | 'access_methods')[] | undefined; exclude?: ('spaces' | 'devices' | 'acs_entrances' | 'connected_accounts' | 'acs_systems' | 'access_methods')[] | undefined; }; formData: {}; jsonResponse: { /** A batch of workspace resources. */ batch: { spaces?: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }[] | undefined; devices?: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[] | undefined; acs_entrances?: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[] | undefined; connected_accounts?: { /** ID of the connected account. */ connected_account_id: string; /** Date and time at which the connected account was created. */ created_at?: string | undefined; /** User identifier associated with the connected account. * @deprecated Use `display_name` instead.*/ user_identifier?: { /** Username of the user identifier associated with the connected account. */ username?: string | undefined; /** API URL for the user identifier associated with the connected account. */ api_url?: string | undefined; /** Email address of the user identifier associated with the connected account. */ email?: string | undefined; /** Phone number of the user identifier associated with the connected account. */ phone?: string | undefined; /** Indicates whether the user identifier associated with the connected account is exclusive. */ exclusive?: boolean | undefined; } | undefined; /** Type of connected account. */ account_type?: string | undefined; /** Display name for the connected account type. */ account_type_display_name: string; /** Logo URL for the connected account provider. */ image_url?: string | undefined; /** Display name for the connected account. */ display_name: string; /** Errors associated with the connected account. */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Salto KS metadata associated with the connected account that has an error. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has an error. */ sites?: ({ /** ID of a Salto site associated with the connected account that has an error. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has an error. */ site_name?: (string | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */ subscribed_site_user_count?: (number | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */ site_user_subscription_limit?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; })[]; /** Warnings associated with the connected account. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_connected_account'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; /** Salto KS metadata associated with the connected account that has a warning. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has a warning. */ sites?: ({ /** ID of a Salto site associated with the connected account that has a warning. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has a warning. */ site_name?: (string | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has a warning. */ site_user_subscription_limit?: (number | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has a warning. */ subscribed_site_user_count?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'account_reauthorization_requested'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_service_unavailable'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'dormakaba_sites_unapproved'; })[]; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** Your unique key for the customer associated with this connected account. */ customer_key?: string | undefined; /** List of capabilities that were accepted during the account connection process. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** 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. */ default_checkin_time?: string | undefined; /** Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration. */ default_checkout_time?: string | undefined; /** IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. */ time_zone?: string | undefined; /** 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. */ ical_feed_origin?: string | undefined; /** For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration. */ ical_url?: string | undefined; }[] | undefined; acs_systems?: { /** ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ default_credential_manager_acs_system_id?: (string | null) | undefined; /** ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_system_id: string; /** Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_user_count?: number | undefined; /** Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_access_group_count?: number | undefined; /** Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Indicates whether the `acs_system` is a credential manager. */ is_credential_manager: boolean; /** Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ visionline_metadata?: { /** Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset. */ mobile_access_uuid?: (string | undefined) | undefined; /** Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager. */ system_id?: (string | undefined) | undefined; /** 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. */ lan_address?: (string | undefined) | undefined; } | undefined; /** * @deprecated Use `external_type`.*/ system_type?: ('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') | undefined; /** * @deprecated Use `external_type_display_name`.*/ system_type_display_name?: string | undefined; /** Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ location: { /** Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located. */ time_zone: string | null; }; /** Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ name: string; /** Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ created_at: string; /** ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ workspace_id: string; /** 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). * @deprecated Use `connected_account_id`.*/ connected_account_ids: string[]; /** ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ connected_account_id: string; /** URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ image_url: string; /** Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image. */ image_alt_text: string; /** Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'seam_bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; /** Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'visionline_instance_unreachable'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'user_license_limit_reached'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_system_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_service_unavailable'; })[]; /** Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_custom_pins_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_does_not_match_location'; /** * @deprecated this field is deprecated.*/ misconfigured_acs_entrance_ids?: string[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_system'; })[]; }[] | undefined; access_methods?: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }[] | undefined; }; }; maxDuration: undefined; }; '/spaces/list': { route: '/spaces/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list spaces. */ customer_key?: string | undefined; /** String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`, `space_key`, or `customer_key`. */ search?: string | undefined; /** Filter spaces to only include those that contain devices or access control systems belonging to the specified connected account. */ connected_account_id?: string | undefined; /** Filter spaces by space_key. */ space_key?: string | undefined; /** Filter spaces to only include those whose parent space has the specified `parent_space_id`. */ parent_space_id?: string | undefined; /** Filter spaces to only include those whose parent space has the specified `parent_space_key`. */ parent_space_key?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { spaces: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/spaces/remove_acs_entrances': { route: '/spaces/remove_acs_entrances'; method: 'POST' | 'DELETE'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space from which you want to remove entrances. */ space_id: string; /** IDs of the entrances that you want to remove from the space. */ acs_entrance_ids: string[]; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/spaces/remove_connected_account': { route: '/spaces/remove_connected_account'; method: 'POST' | 'DELETE'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space from which you want to remove the connected account. */ space_id: string; /** ID of the connected account that you want to remove from the space. */ connected_account_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/spaces/remove_devices': { route: '/spaces/remove_devices'; method: 'POST' | 'DELETE'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the space from which you want to remove devices. */ space_id: string; /** IDs of the devices that you want to remove from the space. */ device_ids: string[]; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/spaces/update': { route: '/spaces/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** Name of the space. */ name?: string | undefined; /** ID of the space that you want to update. */ space_id?: string | undefined; /** Unique key of the space that you want to update. */ space_key?: string | undefined; /** IDs of the devices that you want to set for the space. If specified, this will replace all existing devices. */ device_ids?: string[] | undefined; /** IDs of the entrances that you want to set for the space. If specified, this will replace all existing entrances. */ acs_entrance_ids?: string[] | undefined; /** 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. */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates of the space. Pass null to clear them. Seam keeps this value until the connected PMS reports different coordinates for the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Reassign this space to the parent space (site) with this `parent_space_id`. */ parent_space_id?: string | undefined; /** Reassign this space to the parent space (site) with this `parent_space_key`. */ parent_space_key?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ space: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }; }; maxDuration: undefined; }; '/speakers/list_favorites': { route: '/speakers/list_favorites'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the speaker for which you want to list favorites. */ device_id: string; }; formData: {}; jsonResponse: { speaker_favorites: { /** ID of the favorite. Pass it to `/speakers/play_favorite`. */ favorite_id: string; /** Name of the favorite. */ name: string; /** Description of the favorite, such as its artist or station. */ description?: string | undefined; /** Name of the music service that provides the favorite. */ service_name?: string | undefined; /** URL of the favorite's artwork. */ image_url?: string | undefined; }[]; }; maxDuration: undefined; }; '/speakers/mute': { route: '/speakers/mute'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker that you want to mute. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/speakers/pause': { route: '/speakers/pause'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker on which you want to pause playback. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/speakers/play_audio_clip': { route: '/speakers/play_audio_clip'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker on which you want to play the audio clip. */ device_id: string; /** 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. */ audio_url: string; /** 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. */ volume?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/speakers/play_chime': { route: '/speakers/play_chime'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker on which you want to play a chime. */ device_id: string; /** 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. */ volume?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/speakers/play_favorite': { route: '/speakers/play_favorite'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker on which you want to play the favorite. */ device_id: string; /** ID of the favorite that you want to play, from `/speakers/list_favorites`. */ favorite_id: string; /** Whether to shuffle the favorite's tracks. If you omit this parameter, the speaker keeps its current shuffle setting. */ shuffle?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/speakers/resume': { route: '/speakers/resume'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker on which you want to resume playback. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/speakers/set_volume': { route: '/speakers/set_volume'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker for which you want to set the volume. */ device_id: string; /** Volume that you want to set, on the speaker's native volume scale. */ volume: number; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/speakers/unmute': { route: '/speakers/unmute'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the speaker that you want to unmute. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/activate_climate_preset': { route: '/thermostats/activate_climate_preset'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to activate a climate preset. */ device_id: string; /** Climate preset key of the climate preset that you want to activate. */ climate_preset_key: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/activate_weekly_program': { route: '/thermostats/activate_weekly_program'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device that you want to return to its weekly program. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/cool': { route: '/thermostats/cool'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device that you want to set to cool mode. */ device_id: string; /** [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. */ cooling_set_point_celsius?: number | undefined; /** [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. */ cooling_set_point_fahrenheit?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/create_climate_preset': { route: '/thermostats/create_climate_preset'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want create a climate preset. */ device_id: string; /** Indicates whether a person at the thermostat or using the API can change the thermostat's settings. * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean; /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/daily_programs/create': { route: '/thermostats/daily_programs/create'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to create a daily program. */ device_id: string; /** Name of the thermostat daily program. */ name: string; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ thermostat_daily_program: { /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }; }; maxDuration: undefined; }; '/thermostats/daily_programs/delete': { route: '/thermostats/daily_programs/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the thermostat daily program that you want to delete. */ thermostat_daily_program_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/daily_programs/update': { route: '/thermostats/daily_programs/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat daily program that you want to update. */ thermostat_daily_program_id: string; /** Name of the thermostat daily program that you want to update. */ name: string; /** Array of thermostat daily program periods. The periods that you specify overwrite any existing periods for the daily program. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/delete_climate_preset': { route: '/thermostats/delete_climate_preset'; method: 'POST' | 'DELETE'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the thermostat device for which you want to delete a climate preset. */ device_id: string; /** Climate preset key of the climate preset that you want to delete. */ climate_preset_key: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/get': { route: '/thermostats/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the thermostat device that you want to get. */ device_id?: string | undefined; /** Name of the thermostat device that you want to retrieve. */ name?: string | undefined; }; formData: {}; jsonResponse: { /** Represents a [device](https://www.seam.co/docs/core-concepts/devices) that has been connected to Seam. */ thermostat: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }; }; maxDuration: undefined; }; '/thermostats/heat': { route: '/thermostats/heat'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device that you want to set to heat mode. */ device_id: string; /** [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. */ heating_set_point_celsius?: number | undefined; /** [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. */ heating_set_point_fahrenheit?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/heat_cool': { route: '/thermostats/heat_cool'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device that you want to set to heat-cool mode. */ device_id: string; /** [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. */ heating_set_point_celsius?: number | undefined; /** [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. */ heating_set_point_fahrenheit?: number | undefined; /** [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. */ cooling_set_point_celsius?: number | undefined; /** [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. */ cooling_set_point_fahrenheit?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/list': { route: '/thermostats/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list devices. */ customer_key?: string | undefined; /** ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined; /** ID of the Connect Webview for which you want to list devices. */ connect_webview_id?: string | undefined; /** Device type by which you want to filter thermostat devices. */ device_type?: ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | undefined; /** Array of device types by which you want to filter thermostat devices. */ device_types?: ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat')[] | undefined; /** Manufacturer by which you want to filter thermostat devices. */ manufacturer?: ('ecobee' | 'honeywell_resideo' | 'cielo' | 'nest' | 'sensi' | 'sensibo' | 'smartthings' | 'tado') | undefined; }; formData: {}; jsonResponse: { thermostats: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/thermostats/off': { route: '/thermostats/off'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device that you want to set to off mode. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/schedules/create': { route: '/thermostats/schedules/create'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to create a schedule. */ device_id: string; /** Name of the thermostat schedule. */ name?: string | undefined; /** 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. */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ ends_at: string; /** 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). */ is_override_allowed?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ thermostat_schedule: { /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; }; }; maxDuration: undefined; }; '/thermostats/schedules/delete': { route: '/thermostats/schedules/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the thermostat schedule that you want to delete. */ thermostat_schedule_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/schedules/get': { route: '/thermostats/schedules/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the thermostat schedule that you want to get. */ thermostat_schedule_id: string; }; formData: {}; jsonResponse: { /** 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. */ thermostat_schedule: { /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; }; }; maxDuration: undefined; }; '/thermostats/schedules/list': { route: '/thermostats/schedules/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the thermostat device for which you want to list schedules. */ device_id: string; /** User identifier key by which to filter the list of returned thermostat schedules. */ user_identifier_key?: string | undefined; }; formData: {}; jsonResponse: { thermostat_schedules: { /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; }[]; }; maxDuration: undefined; }; '/thermostats/schedules/update': { route: '/thermostats/schedules/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat schedule that you want to update. */ thermostat_schedule_id: string; /** Name of the thermostat schedule. */ name?: string | undefined; /** Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule. */ climate_preset_key?: string | undefined; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at?: string | undefined; /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ ends_at?: string | undefined; /** 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). */ is_override_allowed?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/set_fallback_climate_preset': { route: '/thermostats/set_fallback_climate_preset'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to set the fallback climate preset. */ device_id: string; /** Climate preset key of the climate preset that you want to set as the fallback climate preset. */ climate_preset_key: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/set_fan_mode': { route: '/thermostats/set_fan_mode'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to set the fan mode. */ device_id: string; /** * @deprecated Use `fan_mode_setting` instead.*/ fan_mode?: ('auto' | 'on' | 'circulate') | undefined; /** [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. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/set_hvac_mode': { route: '/thermostats/set_hvac_mode'; method: 'POST'; queryParams: {}; jsonBody: { hvac_mode_setting: 'off'; /** ID of the thermostat device for which you want to set the HVAC mode. */ device_id: string; } | { hvac_mode_setting: 'cool'; /** ID of the thermostat device for which you want to set the HVAC mode. */ device_id: string; /** [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. */ cooling_set_point_celsius?: number | undefined; /** [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. */ cooling_set_point_fahrenheit?: number | undefined; } | { hvac_mode_setting: 'heat'; /** ID of the thermostat device for which you want to set the HVAC mode. */ device_id: string; /** [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. */ heating_set_point_celsius?: number | undefined; /** [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. */ heating_set_point_fahrenheit?: number | undefined; } | { hvac_mode_setting: 'heat_cool'; /** ID of the thermostat device for which you want to set the HVAC mode. */ device_id: string; /** [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. */ cooling_set_point_celsius?: number | undefined; /** [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. */ cooling_set_point_fahrenheit?: number | undefined; /** [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. */ heating_set_point_celsius?: number | undefined; /** [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. */ heating_set_point_fahrenheit?: number | undefined; } | { hvac_mode_setting: 'eco'; /** ID of the thermostat device for which you want to set the HVAC mode. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/thermostats/set_temperature_threshold': { route: '/thermostats/set_temperature_threshold'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to set a temperature threshold. */ device_id: string; /** 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. */ lower_limit_celsius?: (number | undefined) | null; /** 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. */ lower_limit_fahrenheit?: (number | undefined) | null; /** 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. */ upper_limit_celsius?: (number | undefined) | null; /** 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. */ upper_limit_fahrenheit?: (number | undefined) | null; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/simulate/hvac_mode_adjusted': { route: '/thermostats/simulate/hvac_mode_adjusted'; method: 'POST'; queryParams: {}; jsonBody: { /** HVAC mode that you want to simulate. */ hvac_mode: 'off'; /** ID of the thermostat device for which you want to simulate having adjusted the HVAC mode. */ device_id: string; } | { /** HVAC mode that you want to simulate. */ hvac_mode: 'cool'; /** ID of the thermostat device for which you want to simulate having adjusted the HVAC mode. */ device_id: string; /** 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`. */ cooling_set_point_celsius?: number | undefined; /** 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`. */ cooling_set_point_fahrenheit?: number | undefined; } | { /** HVAC mode that you want to simulate. */ hvac_mode: 'heat'; /** ID of the thermostat device for which you want to simulate having adjusted the HVAC mode. */ device_id: string; /** 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`. */ heating_set_point_celsius?: number | undefined; /** 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`. */ heating_set_point_fahrenheit?: number | undefined; } | { /** HVAC mode that you want to simulate. */ hvac_mode: 'heat_cool'; /** ID of the thermostat device for which you want to simulate having adjusted the HVAC mode. */ device_id: string; /** 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`. */ cooling_set_point_celsius?: number | undefined; /** 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`. */ cooling_set_point_fahrenheit?: number | undefined; /** 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`. */ heating_set_point_celsius?: number | undefined; /** 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`. */ heating_set_point_fahrenheit?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/simulate/temperature_reached': { route: '/thermostats/simulate/temperature_reached'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device that you want to simulate reaching a specified temperature. */ device_id: string; /** Temperature in °C that you want simulate the thermostat reaching. You must set `temperature_celsius` or `temperature_fahrenheit`. */ temperature_celsius?: number | undefined; /** Temperature in °F that you want simulate the thermostat reaching. You must set `temperature_fahrenheit` or `temperature_celsius`. */ temperature_fahrenheit?: number | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/update_climate_preset': { route: '/thermostats/update_climate_preset'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to update a climate preset. */ device_id: string; /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/thermostats/update_weekly_program': { route: '/thermostats/update_weekly_program'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the thermostat device for which you want to update the weekly program. */ device_id: string; /** ID of the thermostat daily program to run on Mondays. */ monday_program_id?: (string | undefined) | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id?: (string | undefined) | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id?: (string | undefined) | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id?: (string | undefined) | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id?: (string | undefined) | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id?: (string | undefined) | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id?: (string | undefined) | null; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/unstable_partner/building_blocks/connect_accounts': { route: '/unstable_partner/building_blocks/connect_accounts'; method: 'POST'; queryParams: {}; jsonBody: { /** Customer key for which you want to connect accounts. */ customer_key: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. With 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. Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */ magic_link: { /** URL for the magic link. */ url: string; /** Customer key for the magic link. */ customer_key: string; /** Date and time at which the magic link expires. */ expires_at: string; /** ID of the workspace associated with the magic link. */ workspace_id: string; /** Date and time at which the magic link was created. */ created_at: string; }; }; maxDuration: undefined; }; '/unstable_partner/building_blocks/generate_magic_link': { route: '/unstable_partner/building_blocks/generate_magic_link'; method: 'POST'; queryParams: {}; jsonBody: { /** Type of building block for which you want to create a magic link. */ building_block_type: 'connect_accounts' | 'organize_spaces' | 'console' | 'manage_devices'; /** Customer key for which you want to create a new building block magic link. */ customer_key: string; /** Optional list of spaces that you want to include in the new building block magic link. */ spaces?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the space. */ space_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; /** 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. */ duration_minutes?: number | undefined; /** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: { /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | undefined; }[] | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. With 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. Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */ magic_link: { /** URL for the magic link. */ url: string; /** Customer key for the magic link. */ customer_key: string; /** Date and time at which the magic link expires. */ expires_at: string; /** ID of the workspace associated with the magic link. */ workspace_id: string; /** Date and time at which the magic link was created. */ created_at: string; }; }; maxDuration: undefined; }; '/unstable_partner/building_blocks/manage_devices': { route: '/unstable_partner/building_blocks/manage_devices'; method: 'POST'; queryParams: {}; jsonBody: { /** Customer key for which you want to manage devices. */ customer_key: string; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. With 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. Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */ magic_link: { /** URL for the magic link. */ url: string; /** Customer key for the magic link. */ customer_key: string; /** Date and time at which the magic link expires. */ expires_at: string; /** ID of the workspace associated with the magic link. */ workspace_id: string; /** Date and time at which the magic link was created. */ created_at: string; }; }; maxDuration: undefined; }; '/unstable_partner/building_blocks/organize_spaces': { route: '/unstable_partner/building_blocks/organize_spaces'; method: 'POST'; queryParams: {}; jsonBody: { /** Customer key for which you want to organize spaces. */ customer_key: string; /** Optional list of spaces that you want to include in the new building block magic link. */ spaces?: { /** Your display name for this location resource. */ name: string; /** Your unique identifier for the space. */ space_key: string; /** Your unique identifier for the site. */ parent_site_key?: string | undefined; /** 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. */ duration_minutes?: number | undefined; /** Reservation/stay-related defaults for the space (time zone, default check-in/out times, address). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: { /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | undefined; }[] | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. With 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. Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */ magic_link: { /** URL for the magic link. */ url: string; /** Customer key for the magic link. */ customer_key: string; /** Date and time at which the magic link expires. */ expires_at: string; /** ID of the workspace associated with the magic link. */ workspace_id: string; /** Date and time at which the magic link was created. */ created_at: string; }; }; maxDuration: undefined; }; '/user_identities/add_acs_user': { route: '/user_identities/add_acs_user'; method: 'POST' | 'PUT'; queryParams: {}; jsonBody: { /** ID of the user identity to which you want to add an access system user. */ user_identity_id?: string | undefined; /** Key of the user identity to which you want to add an access system user. */ user_identity_key?: string | undefined; /** ID of the access system user that you want to add to the user identity. */ acs_user_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/create': { route: '/user_identities/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Unique key for the new user identity. */ user_identity_key?: (string | null) | undefined; /** Unique email address for the new user identity. */ email_address?: (string | null) | undefined; /** Unique phone number for the new user identity in E.164 format (for example, +15555550100). */ phone_number?: (string | null) | undefined; /** Full name of the user associated with the new user identity. */ full_name?: (string | null) | undefined; /** 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. */ customer_key?: string | undefined; /** 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. */ acs_system_ids?: string[] | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ user_identity: { /** ID of the user identity. */ user_identity_id: string; /** Unique key for the user identity. */ user_identity_key: string | null; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }; }; maxDuration: undefined; }; '/user_identities/delete': { route: '/user_identities/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity that you want to delete. */ user_identity_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/enrollment_automations/delete': { route: '/user_identities/enrollment_automations/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the enrollment automation that you want to delete. */ enrollment_automation_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/enrollment_automations/get': { route: '/user_identities/enrollment_automations/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the enrollment automation that you want to get. */ enrollment_automation_id: string; }; formData: {}; jsonResponse: { /** 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). */ enrollment_automation: { /** ID of the enrollment automation. */ enrollment_automation_id: string; /** ID of the associated [ACS system](https://www.seam.co/docs/low-level-apis/access-systems) that serves as the credential manager. */ credential_manager_acs_system_id: string; /** 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). */ user_identity_id: string; /** Date and time at which the enrollment automation was created. */ created_at: string; /** ID of the workspace that contains the enrollment automation. */ workspace_id: string; }; }; maxDuration: undefined; }; '/user_identities/enrollment_automations/launch': { route: '/user_identities/enrollment_automations/launch'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the user identity for which you want to launch an enrollment automation. */ user_identity_id: string; /** ID of the desired access system that serves as the credential manager for the enrollment automation. */ credential_manager_acs_system_id: string; /** ID of the credential pool from which to obtain credentials for the user identity. */ acs_credential_pool_id?: string | undefined; /** 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`. */ create_credential_manager_user?: boolean | undefined; /** 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`. */ credential_manager_acs_user_id?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). */ enrollment_automation: { /** ID of the enrollment automation. */ enrollment_automation_id: string; /** ID of the associated [ACS system](https://www.seam.co/docs/low-level-apis/access-systems) that serves as the credential manager. */ credential_manager_acs_system_id: string; /** 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). */ user_identity_id: string; /** Date and time at which the enrollment automation was created. */ created_at: string; /** ID of the workspace that contains the enrollment automation. */ workspace_id: string; }; }; maxDuration: undefined; }; '/user_identities/enrollment_automations/list': { route: '/user_identities/enrollment_automations/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity for which you want to retrieve enrollment automations. */ user_identity_id: string; }; formData: {}; jsonResponse: { enrollment_automations: { /** ID of the enrollment automation. */ enrollment_automation_id: string; /** ID of the associated [ACS system](https://www.seam.co/docs/low-level-apis/access-systems) that serves as the credential manager. */ credential_manager_acs_system_id: string; /** 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). */ user_identity_id: string; /** Date and time at which the enrollment automation was created. */ created_at: string; /** ID of the workspace that contains the enrollment automation. */ workspace_id: string; }[]; }; maxDuration: undefined; }; '/user_identities/generate_instant_key': { route: '/user_identities/generate_instant_key'; method: 'POST'; queryParams: {}; jsonBody: { customization_profile_id?: string | undefined; /** ID of the user identity for which you want to generate an instant key. */ user_identity_id: string; /** Maximum number of times the instant key can be used. Default: 1. */ max_use_count?: number; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. There’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. */ instant_key: { /** ID of the Instant Key. */ instant_key_id: string; /** ID of the workspace that contains the Instant Key. */ workspace_id: string; /** Date and time at which the Instant Key was created. */ created_at: string; /** 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. */ instant_key_url: string; /** ID of the client session associated with the Instant Key. */ client_session_id: string; /** ID of the user identity associated with the Instant Key. */ user_identity_id: string; /** Date and time at which the Instant Key expires. */ expires_at: string; /** ID of the customization profile associated with the Instant Key. */ customization_profile_id?: string | undefined; /** Customization applied to the Instant Key UI. */ customization?: { /** Primary color used in the Instant Key UI. */ primary_color?: string | undefined; /** Secondary color used in the Instant Key UI. */ secondary_color?: string | undefined; /** URL of the logo displayed on the Instant Key. */ logo_url?: string | undefined; /** 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. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; } | undefined; }; }; maxDuration: undefined; }; '/user_identities/get': { route: '/user_identities/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity that you want to get. */ user_identity_id: string; } | { user_identity_key: string; }; formData: {}; jsonResponse: { /** 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. */ user_identity: { /** ID of the user identity. */ user_identity_id: string; /** Unique key for the user identity. */ user_identity_key: string | null; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }; }; maxDuration: undefined; }; '/user_identities/grant_access_to_device': { route: '/user_identities/grant_access_to_device'; method: 'PUT' | 'POST'; queryParams: {}; jsonBody: { /** ID of the user identity that you want to grant access to a device. */ user_identity_id: string; /** ID of the managed device to which you want to grant access to the user identity. */ device_id: string; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/list': { route: '/user_identities/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** Customer key for which you want to list user identities. */ customer_key?: string | undefined; /** Array of user identity IDs by which to filter the list of user identities. */ user_identity_ids?: string[] | undefined; /** 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`. */ search?: string | undefined; /** `acs_system_id` of the credential manager by which you want to filter the list of user identities. */ credential_manager_acs_system_id?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Timestamp by which to limit returned user identities. Returns user identities created before this timestamp. */ created_before?: Date | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { user_identities: { /** ID of the user identity. */ user_identity_id: string; /** Unique key for the user identity. */ user_identity_key: string | null; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/user_identities/list_accessible_devices': { route: '/user_identities/list_accessible_devices'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity for which you want to retrieve all accessible devices. */ user_identity_id: string; }; formData: {}; jsonResponse: { devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; /** * @deprecated Use devices.*/ accessible_devices: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/user_identities/list_accessible_entrances': { route: '/user_identities/list_accessible_entrances'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity for which you want to retrieve all accessible entrances. */ user_identity_id: string; }; formData: {}; jsonResponse: { acs_entrances: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[]; }; maxDuration: undefined; }; '/user_identities/list_acs_systems': { route: '/user_identities/list_acs_systems'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity for which you want to retrieve all access systems. */ user_identity_id: string; }; formData: {}; jsonResponse: { acs_systems: { /** ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ default_credential_manager_acs_system_id?: (string | null) | undefined; /** ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_system_id: string; /** Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_user_count?: number | undefined; /** Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_access_group_count?: number | undefined; /** Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Indicates whether the `acs_system` is a credential manager. */ is_credential_manager: boolean; /** Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ visionline_metadata?: { /** Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset. */ mobile_access_uuid?: (string | undefined) | undefined; /** Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager. */ system_id?: (string | undefined) | undefined; /** 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. */ lan_address?: (string | undefined) | undefined; } | undefined; /** * @deprecated Use `external_type`.*/ system_type?: ('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') | undefined; /** * @deprecated Use `external_type_display_name`.*/ system_type_display_name?: string | undefined; /** Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ location: { /** Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located. */ time_zone: string | null; }; /** Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ name: string; /** Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ created_at: string; /** ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ workspace_id: string; /** 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). * @deprecated Use `connected_account_id`.*/ connected_account_ids: string[]; /** ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ connected_account_id: string; /** URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ image_url: string; /** Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image. */ image_alt_text: string; /** Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'seam_bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; /** Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'visionline_instance_unreachable'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'user_license_limit_reached'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_system_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_service_unavailable'; })[]; /** Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_custom_pins_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_does_not_match_location'; /** * @deprecated this field is deprecated.*/ misconfigured_acs_entrance_ids?: string[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_system'; })[]; }[]; }; maxDuration: undefined; }; '/user_identities/list_acs_users': { route: '/user_identities/list_acs_users'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity for which you want to retrieve all access system users. */ user_identity_id: string; }; formData: {}; jsonResponse: { acs_users: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Indicates whether Seam manages the access system user. */ is_managed: true; }[]; }; maxDuration: undefined; }; '/user_identities/merge': { route: '/user_identities/merge'; method: 'POST'; queryParams: {}; jsonBody: { /** ID of the primary user identity to keep. */ user_identity_id: string; /** IDs of the user identities to merge into the primary user identity. These user identities are deleted. */ merged_user_identity_ids: string[]; } | { /** Key of the primary user identity to keep. */ user_identity_key: string; /** Keys of the user identities to merge into the primary user identity. These user identities are deleted. */ merged_user_identity_keys: string[]; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/remove_acs_user': { route: '/user_identities/remove_acs_user'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity from which you want to remove an access system user. */ user_identity_id: string; /** ID of the access system user that you want to remove from the user identity.. */ acs_user_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/revoke_access_to_device': { route: '/user_identities/revoke_access_to_device'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the user identity from which you want to revoke access to a device. */ user_identity_id: string; /** ID of the managed device to which you want to revoke access from the user identity. */ device_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/unmanaged/get': { route: '/user_identities/unmanaged/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the unmanaged user identity that you want to get. */ user_identity_id: string; }; formData: {}; jsonResponse: { /** Represents an unmanaged user identity. Unmanaged user identities do not have keys. */ user_identity: { /** ID of the user identity. */ user_identity_id: string; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }; }; maxDuration: undefined; }; '/user_identities/unmanaged/list': { route: '/user_identities/unmanaged/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** 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`. */ search?: string | undefined; /** Maximum number of records to return per page. */ limit?: number; /** Timestamp by which to limit returned unmanaged user identities. Returns user identities created before this timestamp. */ created_before?: Date | undefined; /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ page_cursor?: (string | undefined) | null; }; formData: {}; jsonResponse: { user_identities: { /** ID of the user identity. */ user_identity_id: string; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }[]; /** Information about the current page of results. */ pagination: { /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */ next_page_cursor: string | null; /** Indicates whether there is another page of results after this one. */ has_next_page: boolean; /** URL to get the next page of results. */ next_page_url: string | null; }; }; maxDuration: undefined; }; '/user_identities/unmanaged/update': { route: '/user_identities/unmanaged/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the unmanaged user identity that you want to update. */ user_identity_id: string; /** Must be set to true to convert the unmanaged user identity to managed. */ is_managed: true; /** Unique key for the user identity. If not provided, the existing key will be preserved. */ user_identity_key?: string | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/user_identities/update': { route: '/user_identities/update'; method: 'PATCH' | 'POST'; queryParams: {}; jsonBody: { /** ID of the user identity that you want to update. */ user_identity_id: string; /** Unique key for the user identity. */ user_identity_key?: (string | null) | undefined; /** Unique email address for the user identity. */ email_address?: (string | null) | undefined; /** Unique phone number for the user identity. */ phone_number?: (string | null) | undefined; /** Full name of the user associated with the user identity. */ full_name?: (string | null) | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/webhooks/create': { route: '/webhooks/create'; method: 'POST'; queryParams: {}; jsonBody: { /** URL for the new webhook. */ url: string; /** Types of events that you want the new webhook to receive. */ event_types?: string[]; }; commonParams: {}; formData: {}; jsonResponse: { /** 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. */ webhook: { /** ID of the webhook. */ webhook_id: string; /** URL for the [webhook](https://www.seam.co/docs/developer-tools/webhooks). */ url: string; /** Types of events that the [webhook](https://www.seam.co/docs/developer-tools/webhooks) should receive. */ event_types?: string[] | undefined; /** Secret associated with the [webhook](https://www.seam.co/docs/developer-tools/webhooks). */ secret?: string | undefined; }; }; maxDuration: undefined; }; '/webhooks/delete': { route: '/webhooks/delete'; method: 'DELETE' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the webhook that you want to delete. */ webhook_id: string; }; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/webhooks/get': { route: '/webhooks/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { /** ID of the webhook that you want to get. */ webhook_id: string; }; formData: {}; jsonResponse: { /** 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. */ webhook: { /** ID of the webhook. */ webhook_id: string; /** URL for the [webhook](https://www.seam.co/docs/developer-tools/webhooks). */ url: string; /** Types of events that the [webhook](https://www.seam.co/docs/developer-tools/webhooks) should receive. */ event_types?: string[] | undefined; /** Secret associated with the [webhook](https://www.seam.co/docs/developer-tools/webhooks). */ secret?: string | undefined; }; }; maxDuration: undefined; }; '/webhooks/list': { route: '/webhooks/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { webhooks: { /** ID of the webhook. */ webhook_id: string; /** URL for the [webhook](https://www.seam.co/docs/developer-tools/webhooks). */ url: string; /** Types of events that the [webhook](https://www.seam.co/docs/developer-tools/webhooks) should receive. */ event_types?: string[] | undefined; /** Secret associated with the [webhook](https://www.seam.co/docs/developer-tools/webhooks). */ secret?: string | undefined; }[]; }; maxDuration: undefined; }; '/webhooks/update': { route: '/webhooks/update'; method: 'PUT' | 'POST'; queryParams: {}; jsonBody: { /** ID of the webhook that you want to update. */ webhook_id: string; /** Types of events that you want the webhook to receive. */ event_types: string[]; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/workspaces/create': { route: '/workspaces/create'; method: 'POST'; queryParams: {}; jsonBody: { /** Name of the new workspace. */ name: string; /** 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. */ organization_id?: string | undefined; /** Company name for the new workspace. */ company_name?: string | undefined; /** Connect partner name for the new workspace. */ connect_partner_name?: (string | null) | undefined; /** Indicates whether the new workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). */ is_sandbox?: boolean; /** * @deprecated Use `connect_webview_customization.webview_primary_button_color` instead.*/ webview_primary_button_color?: string | undefined; /** * @deprecated Use `connect_webview_customization.webview_primary_button_text_color` instead.*/ webview_primary_button_text_color?: string | undefined; /** * @deprecated Use `connect_webview_customization.webview_logo_shape` instead.*/ webview_logo_shape?: ('circle' | 'square') | undefined; /** * @deprecated Use `connect_webview_customization.webview_success_message` instead.*/ webview_success_message?: string | undefined; /** [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). */ connect_webview_customization?: { /** 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). */ primary_button_color?: (string | null) | undefined; /** 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). */ primary_button_text_color?: (string | null) | undefined; /** 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). */ success_message?: (string | null) | undefined; /** 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). */ logo_shape?: (('circle' | 'square') | null) | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** 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). */ workspace: { /** ID of the workspace. */ workspace_id: string; /** Name of the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ name: string; /** Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). * @deprecated Use `connect_partner_name` instead.*/ company_name: string; /** Indicates whether the workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). */ is_sandbox: boolean; connect_webview_customization: { /** 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). */ primary_button_color?: string | undefined; /** 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). */ primary_button_text_color?: string | undefined; /** 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). */ success_message?: string | undefined; /** 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). */ logo_shape?: ('circle' | 'square') | undefined; /** 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). */ inviter_logo_url?: string | undefined; }; /** 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. */ is_suspended: boolean; /** Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ connect_partner_name: string | null; /** 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. */ publishable_key?: string | undefined; /** Indicates whether publishable key authentication is enabled for this workspace. */ is_publishable_key_auth_enabled: boolean; /** ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization. */ organization_id: string | null; }; }; maxDuration: undefined; }; '/workspaces/customization_profiles/create': { route: '/workspaces/customization_profiles/create'; method: 'POST'; queryParams: {}; jsonBody: { base_customization_profile_id?: string | undefined; name?: string | null; primary_color?: string | undefined; secondary_color?: string | undefined; customer_portal_theme?: { primary_color?: string | undefined; primary_foreground_color?: string | undefined; secondary_color?: string | undefined; secondary_foreground_color?: string | undefined; font_family?: string | undefined; mono_font_family?: string | undefined; } | undefined; instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; message_overrides?: { [x: string]: { [x: string]: string; }; } | undefined; /** Features for customer portals that use this profile. Settings passed when creating a portal take precedence. */ customer_portal_features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; }; commonParams: {}; formData: {}; jsonResponse: { /** A customization profile. */ customization_profile: { workspace_id: string; name: string | null; customization_profile_id: string; /** 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. */ customer_key: string | null; created_at: string; /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */ is_workspace_default: boolean; logo_url?: string | undefined; primary_color?: string | undefined; secondary_color?: string | undefined; customer_portal_theme?: { primary_color?: string | undefined; primary_foreground_color?: string | undefined; secondary_color?: string | undefined; secondary_foreground_color?: string | undefined; font_family?: string | undefined; mono_font_family?: string | undefined; } | undefined; /** Theme for the Instant Keys apps. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; message_overrides?: { [x: string]: { [x: string]: string; }; } | undefined; /** 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. */ customer_portal_features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; }; }; maxDuration: undefined; }; '/workspaces/customization_profiles/get': { route: '/workspaces/customization_profiles/get'; method: 'POST' | 'GET'; queryParams: {}; jsonBody: {}; commonParams: { customization_profile_id: string; }; formData: {}; jsonResponse: { /** A customization profile. */ customization_profile: { workspace_id: string; name: string | null; customization_profile_id: string; /** 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. */ customer_key: string | null; created_at: string; /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */ is_workspace_default: boolean; logo_url?: string | undefined; primary_color?: string | undefined; secondary_color?: string | undefined; customer_portal_theme?: { primary_color?: string | undefined; primary_foreground_color?: string | undefined; secondary_color?: string | undefined; secondary_foreground_color?: string | undefined; font_family?: string | undefined; mono_font_family?: string | undefined; } | undefined; /** Theme for the Instant Keys apps. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; message_overrides?: { [x: string]: { [x: string]: string; }; } | undefined; /** 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. */ customer_portal_features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; }; }; maxDuration: undefined; }; '/workspaces/customization_profiles/list': { route: '/workspaces/customization_profiles/list'; method: 'POST' | 'GET'; queryParams: {}; jsonBody: {}; commonParams: { /** Key of the customer whose owned customization profiles you want to list. This filters by owner, not by the profile the customer uses. */ customer_key?: string | undefined; }; formData: {}; jsonResponse: { customization_profiles: { workspace_id: string; name: string | null; customization_profile_id: string; /** 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. */ customer_key: string | null; created_at: string; /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */ is_workspace_default: boolean; logo_url?: string | undefined; primary_color?: string | undefined; secondary_color?: string | undefined; customer_portal_theme?: { primary_color?: string | undefined; primary_foreground_color?: string | undefined; secondary_color?: string | undefined; secondary_foreground_color?: string | undefined; font_family?: string | undefined; mono_font_family?: string | undefined; } | undefined; /** Theme for the Instant Keys apps. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; message_overrides?: { [x: string]: { [x: string]: string; }; } | undefined; /** 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. */ customer_portal_features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; }[]; }; maxDuration: undefined; }; '/workspaces/customization_profiles/update': { route: '/workspaces/customization_profiles/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { customization_profile_id: string; name?: (string | undefined) | null; primary_color?: string | undefined; secondary_color?: string | undefined; customer_portal_theme?: ({ primary_color?: string | undefined; primary_foreground_color?: string | undefined; secondary_color?: string | undefined; secondary_foreground_color?: string | undefined; font_family?: string | undefined; mono_font_family?: string | undefined; } | undefined) | null; instant_key_theme?: ({ /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined) | null; message_overrides?: ({ [x: string]: { [x: string]: string; }; } | undefined) | null; /** 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. */ customer_portal_features?: ({ /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined) | null; is_workspace_default?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/workspaces/customization_profiles/upload_images': { route: '/workspaces/customization_profiles/upload_images'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; '/workspaces/find_anything': { route: '/workspaces/find_anything'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: { search: string; }; formData: {}; jsonResponse: { /** A batch of workspace resources. */ batch: { user_identities?: { /** ID of the user identity. */ user_identity_id: string; /** Unique key for the user identity. */ user_identity_key: string | null; /** Unique email address for the user identity. */ email_address: string | null; /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ phone_number: string | null; /** Display name for the user identity. */ display_name: string; /** Full name of the user associated with the user identity. */ full_name: string | null; /** 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. */ merged_user_identity_ids: string[]; /** 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. */ merged_user_identity_keys: string[]; /** Date and time at which the user identity was created. */ created_at: string; /** ID of the workspace that contains the user identity. */ workspace_id: string; /** 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. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'issue_with_acs_user'; /** ID of the access system user that has an issue. */ acs_user_id: string; /** ID of the access system that the user identity is associated with. */ acs_system_id: string; }[]; /** 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. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'acs_user_profile_does_not_match_user_identity'; })[]; /** Array of access system user IDs associated with the user identity. */ acs_user_ids: string[]; }[] | undefined; workspaces?: { /** ID of the workspace. */ workspace_id: string; /** Name of the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ name: string; /** Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). * @deprecated Use `connect_partner_name` instead.*/ company_name: string; /** Indicates whether the workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). */ is_sandbox: boolean; connect_webview_customization: { /** 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). */ primary_button_color?: string | undefined; /** 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). */ primary_button_text_color?: string | undefined; /** 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). */ success_message?: string | undefined; /** 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). */ logo_shape?: ('circle' | 'square') | undefined; /** 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). */ inviter_logo_url?: string | undefined; }; /** 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. */ is_suspended: boolean; /** Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ connect_partner_name: string | null; /** 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. */ publishable_key?: string | undefined; /** Indicates whether publishable key authentication is enabled for this workspace. */ is_publishable_key_auth_enabled: boolean; /** ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization. */ organization_id: string | null; }[] | undefined; devices?: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** IDs of the spaces the device is in. */ space_ids: string[]; /** Optional nickname to describe the device, settable through Seam. */ nickname?: string | undefined; /** 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. */ display_name: string; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates whether the lock is locked. */ is_door_locked?: boolean | undefined; /** 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. */ is_detached_from_mounting_plate?: boolean | undefined; /** 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`. */ is_casing_tampered_with?: boolean | undefined; /** Properties of the device. */ properties?: ((({ /** Indicates whether the device is online. */ online: boolean; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Appearance-related properties, as reported by the device. */ appearance: { /** Name of the device as seen from the provider API and application, not settable through Seam. */ name: string; }; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; /** Indicates whether the device has direct power. */ has_direct_power?: boolean | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Serial number of the device. */ serial_number?: string | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ supports_accessory_keypad?: boolean | undefined; /** * @deprecated use offline_access_codes_enabled*/ supports_offline_access_codes?: boolean | undefined; /** Indicates current noise level in decibels, if the device supports noise detection. */ noise_level_decibels?: number | undefined; /** Array of noise threshold IDs that are currently triggering. */ currently_triggering_noise_threshold_ids?: string[] | undefined; } & { /** ASSA ABLOY Credential Service metadata for the phone. */ assa_abloy_credential_service_metadata?: ({ /** Indicates whether the credential service has active endpoints associated with the phone. */ has_active_endpoint?: (boolean | undefined) | undefined; /** Endpoints associated with the phone. */ endpoints?: ({ /** ID of the associated endpoint. */ endpoint_id?: (string | undefined) | undefined; /** Indicated whether the endpoint is active. */ is_active?: (boolean | undefined) | undefined; }[] | undefined) | undefined; } | undefined) | undefined; /** Salto Space credential service metadata for the phone. */ salto_space_credential_service_metadata?: ({ /** Indicates whether the credential service has an active associated phone. */ has_active_phone?: (boolean | undefined) | undefined; } | undefined) | undefined; }) & { /** Metadata for an August device. */ august_metadata?: { /** Lock ID for an August device. */ lock_id?: (string | undefined) | undefined; /** Lock name for an August device. */ lock_name?: (string | undefined) | undefined; /** House name for an August device. */ house_name?: (string | undefined) | undefined; /** Indicates whether an August device has a keypad. */ has_keypad?: (boolean | undefined) | undefined; /** Keypad battery level for an August device. */ keypad_battery_level?: (string | undefined) | undefined; /** Model for an August device. */ model?: (string | undefined) | undefined; /** House ID for an August device. */ house_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Avigilon Alta system. */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Metadata for a Schlage device. */ schlage_metadata?: { /** Device ID for a Schlage device. */ device_id?: (string | undefined) | undefined; /** Device name for a Schlage device. */ device_name?: (string | undefined) | undefined; /** Model for a Schlage device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a SmartThings device. */ smartthings_metadata?: { /** Device ID for a SmartThings device. */ device_id?: (string | undefined) | undefined; /** Device name for a SmartThings device. */ device_name?: (string | undefined) | undefined; /** Model for a SmartThings device. */ model?: (string | undefined) | undefined; /** Location ID for a SmartThings device. */ location_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Lockly device. */ lockly_metadata?: { /** Device ID for a Lockly device. */ device_id?: (string | undefined) | undefined; /** Device name for a Lockly device. */ device_name?: (string | undefined) | undefined; /** Model for a Lockly device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Nuki device. */ nuki_metadata?: { /** Device ID for a Nuki device. */ device_id?: (string | undefined) | undefined; /** Device name for a Nuki device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the keypad battery is in a critical state for a Nuki device. */ keypad_battery_critical?: (boolean | undefined) | undefined; /** Indicates whether the keypad is paired for a Nuki device. */ keypad_paired?: (boolean | undefined) | undefined; /** Indicates whether keypad 2 is paired for a Nuki device. */ keypad_2_paired?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Kwikset device. */ kwikset_metadata?: { /** Device ID for a Kwikset device. */ device_id?: (string | undefined) | undefined; /** Device name for a Kwikset device. */ device_name?: (string | undefined) | undefined; /** Model number for a Kwikset device. */ model_number?: (string | undefined) | undefined; } | undefined; /** Metada for a Salto device. * @deprecated Use `salto_ks_metadata` instead.*/ salto_metadata?: { /** Lock ID for a Salto device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto device. */ model?: (string | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Salto KS device. */ salto_ks_metadata?: { /** Lock ID for a Salto KS device. */ lock_id?: (string | undefined) | undefined; /** Customer reference for a Salto KS device. */ customer_reference?: (string | undefined) | undefined; /** Lock type for a Salto KS device. */ lock_type?: (string | undefined) | undefined; /** Battery level for a Salto KS device. */ battery_level?: (string | undefined) | undefined; /** Locked state for a Salto KS device. */ locked_state?: (string | undefined) | undefined; /** Model for a Salto KS device. */ model?: (string | undefined) | undefined; /** Indicates whether the site has a Salto KS subscription that supports custom PINs. */ has_custom_pin_subscription?: (boolean | undefined) | undefined; /** Site ID for the Salto KS site to which the device belongs. */ site_id?: (string | undefined) | undefined; /** Site name for the Salto KS site to which the device belongs. */ site_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Genie device. */ genie_metadata?: { /** Lock name for a Genie device. */ device_name?: (string | undefined) | undefined; /** Door name for a Genie device. */ door_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Brivo device. */ brivo_metadata?: { /** Device name for a Brivo device. */ device_name?: (string | undefined) | undefined; /** Indicates whether the Brivo access point has activation (remote unlock) enabled. */ activation_enabled?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an igloo device. */ igloo_metadata?: { /** Device ID for an igloo device. */ device_id?: (string | undefined) | undefined; /** Bridge ID for an igloo device. */ bridge_id?: (string | undefined) | undefined; /** Model for an igloo device. */ model?: (string | undefined) | undefined; } | undefined; /** Metadata for a NoiseAware device. */ noiseaware_metadata?: { /** Device model for a NoiseAware device. */ device_model?: (('indoor' | 'outdoor') | undefined) | undefined; /** Noise level, expressed as a Noise Risk Score (NRS), for a NoiseAware device. */ noise_level_nrs?: (number | undefined) | undefined; /** Noise level, in decibels, for a NoiseAware device. */ noise_level_decibel?: (number | undefined) | undefined; /** Device name for a NoiseAware device. */ device_name?: (string | undefined) | undefined; /** Device ID for a NoiseAware device. */ device_id?: (string | undefined) | undefined; } | undefined; /** Metadata for a Minut device. */ minut_metadata?: { /** Device ID for a Minut device. */ device_id?: (string | undefined) | undefined; /** Device name for a Minut device. */ device_name?: (string | undefined) | undefined; /** Latest sensor values for a Minut device. */ latest_sensor_values?: { /** Latest temperature reading for a Minut device. */ temperature?: { /** Time of latest temperature reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest temperature reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest sound reading for a Minut device. */ sound?: { /** Time of latest sound reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest sound reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest humidity reading for a Minut device. */ humidity?: { /** Time of latest humidity reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest humidity reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest pressure reading for a Minut device. */ pressure?: { /** Time of latest pressure reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest pressure reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; /** Latest accelerometer Z-axis reading for a Minut device. */ accelerometer_z?: { /** Time of latest accelerometer Z-axis reading for a Minut device. */ time?: (string | undefined) | undefined; /** Value of latest accelerometer Z-axis reading for a Minut device. */ value?: (number | undefined) | undefined; } | undefined; } | undefined; } | undefined; /** Metadata for a 4SUITES device. */ four_suites_metadata?: { /** Device ID for a 4SUITES device. */ device_id?: (number | undefined) | undefined; /** Device name for a 4SUITES device. */ device_name?: (string | undefined) | undefined; /** Reclose delay, in seconds, for a 4SUITES device. */ reclose_delay_in_seconds?: (number | undefined) | undefined; } | undefined; /** Metadata for a 2N device. */ two_n_metadata?: { /** Device ID for a 2N device. */ device_id?: (number | undefined) | undefined; /** Device name for a 2N device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a ControlByWeb device. */ controlbyweb_metadata?: { /** Device ID for a ControlByWeb device. */ device_id?: (string | undefined) | undefined; /** Device name for a ControlByWeb device. */ device_name?: (string | undefined) | undefined; /** Relay name for a ControlByWeb device. */ relay_name?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a TTLock device. */ ttlock_metadata?: { /** Lock ID for a TTLock device. */ lock_id?: (number | undefined) | undefined; /** Lock alias for a TTLock device. */ lock_alias?: (string | undefined) | undefined; /** Feature value for a TTLock device. */ feature_value?: (string | undefined) | undefined; /** Features for a TTLock device. */ features?: { /** Indicates whether a TTLock device supports a passcode. */ passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports passcode management. */ passcode_management?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports unlock via gateway. */ unlock_via_gateway?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports the lock command. */ lock_command?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports an incomplete keyboard passcode. */ incomplete_keyboard_passcode?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports Wi-Fi. */ wifi?: (boolean | undefined) | undefined; /** Indicates whether a TTLock device supports auto-lock time configuration. */ auto_lock_time_config?: (boolean | undefined) | undefined; } | undefined; /** Indicates whether a TTLock device has a gateway. */ has_gateway?: (boolean | undefined) | undefined; /** Wireless keypads for a TTLock device. */ wireless_keypads?: ({ /** ID for a wireless keypad for a TTLock device. */ wireless_keypad_id?: (number | undefined) | undefined; /** Name for a wireless keypad for a TTLock device. */ wireless_keypad_name?: (string | undefined) | undefined; }[] | undefined) | undefined; /** 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. */ timezone_raw_offset_ms?: ((number | null) | undefined) | undefined; } | undefined; /** Metadata for Seam Bridge. */ seam_bridge_metadata?: { /** Unlock method for Seam Bridge. */ unlock_method?: (('bridge' | 'doorking') | undefined) | undefined; /** Device number for Seam Bridge. */ device_num?: (number | undefined) | undefined; /** Name for Seam Bridge. */ name?: (string | undefined) | undefined; } | undefined; /** Metadata for an igloohome device. */ igloohome_metadata?: { /** Device ID for an igloohome device. */ device_id?: (string | undefined) | undefined; /** Device name for an igloohome device. */ device_name?: (string | undefined) | undefined; /** Bridge ID for an igloohome device. */ bridge_id?: (string | undefined) | undefined; /** Bridge name for an igloohome device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for an igloohome device. */ keypad_id?: (string | undefined) | undefined; /** Indicates whether a keypad is linked to a bridge for an igloohome device. */ is_accessory_keypad_linked_to_bridge?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Google Nest device. */ nest_metadata?: { /** Device ID for a Google Nest device. */ nest_device_id?: (string | undefined) | undefined; /** ID of the Google Nest structure containing the device. */ nest_structure_id?: (string | undefined) | undefined; /** Device name for a Google Nest device. Google sets this value. */ device_name?: (string | undefined) | undefined; /** Custom device name for a Google Nest device. The device owner sets this value. */ device_custom_name?: (string | undefined) | undefined; /** Name of the Google Nest structure containing the device. The device owner sets this value. */ structure_name?: (string | undefined) | undefined; /** Name of the Google Home room containing the device. The device owner sets this value. */ display_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ecobee device. */ ecobee_metadata?: { /** Device ID for an ecobee device. */ ecobee_device_id?: (string | undefined) | undefined; /** Device name for an ecobee device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Honeywell Resideo device. */ honeywell_resideo_metadata?: { /** Device ID for a Honeywell Resideo device. */ honeywell_resideo_device_id?: (string | undefined) | undefined; /** Device name for a Honeywell Resideo device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode device. */ dormakaba_oracode_metadata?: { /** Door ID for a dormakaba Oracode device. */ door_id?: (number | undefined) | undefined; /** Door name for a dormakaba Oracode device. */ door_name?: (string | undefined) | undefined; /** Device ID for a dormakaba Oracode device. */ device_id?: ((number | string) | undefined) | undefined; /** Indicates whether a door is wireless for a dormakaba Oracode device. */ door_is_wireless?: (boolean | undefined) | undefined; /** Site ID for a dormakaba Oracode device. * @deprecated Previously marked as "@DEPRECATED."*/ site_id?: ((number | null) | undefined) | undefined; /** Site name for a dormakaba Oracode device. */ site_name?: (string | undefined) | undefined; /** IANA time zone for a dormakaba Oracode device. */ iana_timezone?: (string | undefined) | undefined; /** Predefined time slots for a dormakaba Oracode device. */ predefined_time_slots?: ({ /** Name of a time slot for a dormakaba Oracode device. */ name?: (string | undefined) | undefined; /** Prefix for a time slot for a dormakaba Oracode device. */ prefix?: (number | undefined) | undefined; /** Check in time for a time slot for a dormakaba Oracode device. */ check_in_time?: (string | undefined) | undefined; /** Checkout time for a time slot for a dormakaba Oracode device. */ check_out_time?: (string | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a 24-hour time slot. */ is_24_hour?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is in biweekly mode. */ is_biweekly_mode?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a one-shot time slot. */ is_one_shot?: (boolean | undefined) | undefined; /** Indicates whether a time slot for a dormakaba Oracode device is a master time slot. */ is_master?: (boolean | undefined) | undefined; /** Prefix for a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_prefix?: (number | undefined) | undefined; /** ID of a user level for a dormakaba Oracode device. */ dormakaba_oracode_user_level_id?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a dormakaba Oracode Homeowner's Portal device. */ dormakaba_oracode_iho_metadata?: { /** Name of the door for a dormakaba Oracode Homeowner's Portal device. */ door_name?: (string | undefined) | undefined; /** Door ID for a dormakaba Oracode Homeowner's Portal device. */ door_id?: (number | undefined) | undefined; /** IANA time zone for a dormakaba Oracode Homeowner's Portal device. */ iana_timezone?: (string | undefined) | undefined; /** User levels for a dormakaba Oracode Homeowner's Portal device. */ user_levels?: ({ user_level?: (number | undefined) | undefined; user_level_name?: (string | undefined) | undefined; user_level_type?: (string | undefined) | undefined; user_level_check_in_time?: (string | undefined) | undefined; user_level_check_out_time?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Metadata for a Wyze device. */ wyze_metadata?: { /** Device ID for a Wyze device. */ device_id?: (string | undefined) | undefined; /** Device name for a Wyze device. */ device_name?: (string | undefined) | undefined; /** Product name for a Wyze device. */ product_name?: (string | undefined) | undefined; /** Product type for a Wyze device. */ product_type?: (string | undefined) | undefined; /** Product model for a Wyze device. */ product_model?: (string | undefined) | undefined; /** Device information model for a Wyze device. */ device_info_model?: (string | undefined) | undefined; /** Keypad UUID for a Wyze device. */ keypad_uuid?: (string | undefined) | undefined; /** Locker status (hardlock) for a Wyze device. */ locker_status_hardlock?: (number | undefined) | undefined; } | undefined; /** Metadata for a Tedee device. */ tedee_metadata?: { /** Device ID for a Tedee device. */ device_id?: (number | undefined) | undefined; /** Serial number for a Tedee device. */ serial_number?: (string | undefined) | undefined; /** Device name for a Tedee device. */ device_name?: (string | undefined) | undefined; /** Device model for a Tedee device. */ device_model?: (string | undefined) | undefined; /** Bridge ID for a Tedee device. */ bridge_id?: (number | undefined) | undefined; /** Bridge name for a Tedee device. */ bridge_name?: (string | undefined) | undefined; /** Keypad ID for a Tedee device. */ keypad_id?: (number | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Visionline system. */ visionline_metadata?: { /** Encoder ID for an ASSA ABLOY Visionline system. */ encoder_id?: (string | undefined) | undefined; } | undefined; /** Metadata for an Akiles device. */ akiles_metadata?: { /** Gadget name for an Akiles device. */ gadget_name?: (string | undefined) | undefined; /** Gadget ID for an Akiles device. */ gadget_id?: (string | undefined) | undefined; /** Product name for an Akiles device. */ product_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an ASSA ABLOY Vostio system. */ assa_abloy_vostio_metadata?: { /** Encoder name for an ASSA ABLOY Vostio system. */ encoder_name?: (string | undefined) | undefined; } | undefined; /** Metadata for an Omnitec device. */ omnitec_metadata?: { /** Lock ID for an Omnitec device. */ lock_id?: (number | undefined) | undefined; /** Lock name for an Omnitec device. */ lock_name?: (string | undefined) | undefined; /** Operator-assigned alias for an Omnitec device. */ lock_alias?: (string | undefined) | undefined; /** Bluetooth MAC address for an Omnitec device. */ lock_mac?: (string | undefined) | undefined; /** Whether the Omnitec lock has a connected gateway for remote operations. */ has_gateway?: (boolean | undefined) | undefined; /** Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST. */ timezone_raw_offset_ms?: (number | undefined) | undefined; /** IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a tado° device. */ tado_metadata?: { /** Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ serial_no?: (string | undefined) | undefined; /** Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ device_type?: (string | undefined) | undefined; /** ID of the tado° home. */ home_id?: (string | undefined) | undefined; /** Name of the tado° home. */ home_name?: (string | undefined) | undefined; /** Generation of the tado° home, such as `PRE_LINE_X`. */ home_generation?: (string | undefined) | undefined; /** ID of the tado° zone within its home. */ zone_id?: (string | undefined) | undefined; /** Name of the tado° zone. */ zone_name?: (string | undefined) | undefined; /** Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. */ zone_type?: (string | undefined) | undefined; /** Serial numbers of all tado° devices in the zone. */ device_serial_numbers?: (string[] | undefined) | undefined; } | undefined; /** Metadata for a Sensi device. */ sensi_metadata?: { /** Device ID for a Sensi device. */ device_id?: (string | undefined) | undefined; /** Device name for a Sensi device. */ device_name?: (string | undefined) | undefined; /** Product type for a Sensi device. */ product_type?: (string | undefined) | undefined; /** * @deprecated Seam no longer sets this field.*/ dual_setpoints_not_supported?: (boolean | undefined) | undefined; } | undefined; /** Metadata for a Sensibo device. */ sensibo_metadata?: { /** ID of the Sensibo device, which Sensibo calls a pod. */ pod_id?: (string | undefined) | undefined; /** Name of the room that the Sensibo device is in. */ room_name?: (string | undefined) | undefined; /** Product model of the Sensibo device, such as `skyv2` or `skyplus`. */ product_model?: (string | undefined) | undefined; /** Product name of the Sensibo device, such as `Sensibo Sky` or `Sensibo Air`. */ product_name?: (string | undefined) | undefined; /** MAC address of the Sensibo device. */ mac_address?: (string | undefined) | undefined; /** Serial number of the Sensibo device. */ serial_number?: (string | undefined) | undefined; /** Firmware version of the Sensibo device. */ firmware_version?: (string | undefined) | undefined; /** Temperature unit that the Sensibo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a Cielo device. */ cielo_metadata?: { /** Name of the device in the Cielo Home app. */ device_name?: (string | undefined) | undefined; /** MAC address of the Cielo device. */ mac_address?: (string | undefined) | undefined; /** ID of the air conditioner or heat pump model that the Cielo device is set up to control. */ appliance_id?: (string | undefined) | undefined; /** Device type that Cielo reports, such as `Thermostat` for a Cielo thermostat. */ cielo_device_type?: (string | undefined) | undefined; /** Temperature unit that the Cielo device displays: `C` or `F`. */ temperature_unit?: (string | undefined) | undefined; } | undefined; /** Metadata for a KeyNest device. */ keynest_metadata?: { /** Key ID for a KeyNest device. */ key_id?: (string | undefined) | undefined; /** Device name for a KeyNest device. */ device_name?: (string | undefined) | undefined; /** Property ID for a KeyNest device. */ property_id?: ((string | null) | undefined) | undefined; /** Property postcode for a KeyNest device. */ property_postcode?: ((string | null) | undefined) | undefined; /** Key notes for a KeyNest device. */ key_notes?: ((string | null) | undefined) | undefined; /** Subscription plan for a KeyNest device. */ subscription_plan?: (string | undefined) | undefined; /** Status type for a KeyNest device. */ status_type?: (string | undefined) | undefined; /** Current or last store ID for a KeyNest device. */ current_or_last_store_id?: (number | undefined) | undefined; /** Last movement timestamp for a KeyNest device. */ last_movement?: (string | undefined) | undefined; /** Address for a KeyNest device. */ address?: ((string | null) | undefined) | undefined; /** Current status for a KeyNest device. */ current_status?: ((string | null) | undefined) | undefined; /** Current user name for a KeyNest device. */ current_user_name?: ((string | null) | undefined) | undefined; /** Current user email for a KeyNest device. */ current_user_email?: ((string | null) | undefined) | undefined; /** Current user phone number for a KeyNest device. */ current_user_phone_number?: ((string | null) | undefined) | undefined; /** Current user company for a KeyNest device. */ current_user_company?: ((string | null) | undefined) | undefined; /** Handover method for a KeyNest device. */ handover_method?: ((string | null) | undefined) | undefined; /** KeyNest app user for a KeyNest device. */ keynest_app_user?: ((string | null) | undefined) | undefined; /** Default office ID for a KeyNest device. */ default_office_id?: (number | undefined) | undefined; /** Fob ID for a KeyNest device. */ fob_id?: (number | undefined) | undefined; /** Whether the KeyNest device has a photo. */ has_photo?: (boolean | undefined) | undefined; /** Whether the key is in a locker that does not support the access codes API. */ is_quadient_locker?: (boolean | undefined) | undefined; } | undefined; /** Metadata for an Ultraloq device. */ ultraloq_metadata?: { /** Device ID for an Ultraloq device. */ device_id?: (string | undefined) | undefined; /** Device name for an Ultraloq device. */ device_name?: (string | undefined) | undefined; /** Device type for an Ultraloq device. */ device_type?: (string | undefined) | undefined; /** IANA timezone for the Ultraloq device. */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Yale Connect lock. */ yale_connect_metadata?: { /** Device ID for a Yale Connect lock. */ device_id?: (string | undefined) | undefined; /** Device name for a Yale Connect lock. */ device_name?: (string | undefined) | undefined; /** Model reported by the Yale Connect lock. */ model?: (string | undefined) | undefined; /** Firmware version reported by the Yale Connect lock. */ firmware_version?: (string | undefined) | undefined; /** Name of the Yale Connect home that contains the lock. */ home_name?: (string | undefined) | undefined; /** Time zone of the Yale Connect home, as Yale reports it. */ time_zone_description?: (string | undefined) | undefined; } | undefined; /** Metadata for a Yacan device. */ yacan_metadata?: { /** Device ID for a Yacan device. */ device_id?: (string | undefined) | undefined; /** Device name for a Yacan device. */ device_name?: (string | undefined) | undefined; /** Device type for a Yacan device. */ device_type?: (string | undefined) | undefined; /** Serial number for a Yacan device. */ serial_number?: (string | undefined) | undefined; } | undefined; /** Metadata for a Tapo camera. */ tapo_metadata?: ({ /** Model reported by the Tapo camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Reolink camera. */ reolink_metadata?: ({ /** Model reported by the Reolink camera. */ model?: (string | undefined) | undefined; /** Firmware version reported by the camera. */ firmware_version?: (string | undefined) | undefined; /** Hardware version reported by the camera. */ hardware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Alertify sensor. */ alertify_metadata?: ({ /** Device ID reported by Alertify. */ device_id?: (string | undefined) | undefined; /** Device name, as set in the Alertify dashboard. */ device_name?: (string | undefined) | undefined; /** ID of the Alertify unit where the device is installed. */ unit_id?: (string | undefined) | undefined; /** Name of the Alertify unit where the device is installed. */ unit_name?: (string | undefined) | undefined; /** ID of the Alertify building that contains the unit. */ building_id?: ((string | null) | undefined) | undefined; } | undefined) | undefined; /** Metadata for a UniFi Protect camera. */ unifi_protect_metadata?: ({ /** Camera ID reported by UniFi Protect. */ camera_id?: (string | undefined) | undefined; /** Camera name reported by UniFi Protect. */ camera_name?: (string | undefined) | undefined; /** Model reported by the UniFi Protect camera. */ model?: (string | undefined) | undefined; /** MAC address reported by the UniFi Protect camera. */ mac?: (string | undefined) | undefined; /** Name of the UniFi Protect console that manages the camera. */ nvr_name?: (string | undefined) | undefined; /** Whether the camera has a microphone. */ has_mic?: (boolean | undefined) | undefined; } | undefined) | undefined; /** Metadata for an Arlo camera. */ arlo_metadata?: ({ /** Device ID reported by Arlo. */ device_id?: (string | undefined) | undefined; /** Device name reported by Arlo. */ device_name?: (string | undefined) | undefined; /** Model ID reported by Arlo. */ model_id?: (string | undefined) | undefined; /** Hardware version reported by Arlo. */ hardware_version?: (string | undefined) | undefined; /** Firmware version reported by Arlo. */ firmware_version?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Ring device. */ ring_metadata?: { /** Device ID for a Ring device. */ device_id?: (string | undefined) | undefined; /** Device name for a Ring device. */ device_name?: (string | undefined) | undefined; } | undefined; /** Metadata for a Korelock device. */ korelock_metadata?: { /** Device ID for a Korelock device. */ device_id?: (string | undefined) | undefined; /** Device name for a Korelock device. */ device_name?: (string | undefined) | undefined; /** Model code for a Korelock device. */ model_code?: (string | undefined) | undefined; /** Serial number for a Korelock device. */ serial_number?: (string | undefined) | undefined; /** Firmware version for a Korelock device. */ firmware_version?: (string | undefined) | undefined; /** WiFi signal strength (0-1) for a Korelock device. */ wifi_signal_strength?: (number | undefined) | undefined; /** Location ID for a Korelock device. Required for timebound access codes. */ location_id?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Kisi device. */ kisi_metadata?: { /** Lock ID for a Kisi device. */ lock_id?: (number | undefined) | undefined; /** Lock name for a Kisi device. */ lock_name?: (string | undefined) | undefined; /** Place name for a Kisi device. */ place_name?: ((string | null) | undefined) | undefined; /** Description for a Kisi device. */ description?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for an Aqara device. */ aqara_metadata?: { /** Device ID (did) for an Aqara device. */ did?: (string | undefined) | undefined; /** Parent gateway device ID for an Aqara device. */ parent_did?: (string | undefined) | undefined; /** Device name for an Aqara device. */ device_name?: (string | undefined) | undefined; /** Model identifier for an Aqara device. */ model?: (string | undefined) | undefined; /** Model type for an Aqara device. */ model_type?: (number | undefined) | undefined; /** Time zone reported for an Aqara device (e.g. GMT-07:00). */ time_zone?: ((string | null) | undefined) | undefined; /** Position (room) ID for an Aqara device. */ position_id?: ((string | null) | undefined) | undefined; /** Firmware version for an Aqara device. */ firmware_version?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Tuya device. */ tuya_metadata?: { /** Device ID for a Tuya device. */ device_id?: (string | undefined) | undefined; /** Device name for a Tuya device. */ device_name?: (string | undefined) | undefined; /** Tuya product category code for the device (e.g. ms). */ category?: (string | undefined) | undefined; /** Tuya product ID for the device. */ product_id?: (string | undefined) | undefined; /** Tuya product name for the device. */ product_name?: (string | undefined) | undefined; /** Model reported for a Tuya device. */ model?: ((string | null) | undefined) | undefined; /** Time zone reported for a Tuya device (e.g. +08:00). */ time_zone?: ((string | null) | undefined) | undefined; } | undefined; /** Metadata for a Eufy device. */ eufy_metadata?: { device_id?: (string | undefined) | undefined; device_name?: (string | undefined) | undefined; model?: (string | undefined) | undefined; } | undefined; /** Metadata for a Sonos speaker. */ sonos_metadata?: ({ /** ID of the Sonos household that the speaker belongs to. */ household_id?: (string | undefined) | undefined; /** ID of the Sonos player for the speaker. */ player_id?: (string | undefined) | undefined; /** Name of the speaker, as set in the Sonos app. */ player_name?: (string | undefined) | undefined; /** Model name of the speaker, as reported by Sonos. */ model_display_name?: (string | undefined) | undefined; /** Color of the speaker, as reported by Sonos. */ color?: (string | undefined) | undefined; /** Software version running on the speaker. */ software_version?: (string | undefined) | undefined; /** Models of the speakers bonded to this speaker, such as surrounds or a subwoofer. */ bonded_member_models?: (string[] | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Hayward OmniLogic pool controller, pool, or spa. */ hayward_omnilogic_metadata?: ({ /** ID of the Hayward OmniLogic controller that the device belongs to. */ msp_system_id?: (string | undefined) | undefined; /** Name of the controller, as set in the Hayward OmniLogic app. */ backyard_name?: (string | undefined) | undefined; /** ID of the pool or spa within its controller. Only present on a pool or spa. */ system_id?: (string | undefined) | undefined; /** Name of the pool or spa, as set in the Hayward OmniLogic app. Only present on a pool or spa. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; /** Metadata for a Jandy iAquaLink pool controller, pool, or spa. */ jandy_iaqualink_metadata?: ({ /** Serial number of the Jandy iAquaLink controller that the device belongs to. */ serial_number?: (string | undefined) | undefined; /** Name of the controller, as set in the Jandy iAquaLink app. */ system_name?: (string | undefined) | undefined; } | undefined) | undefined; }) & ({ /** 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. */ code_constraints?: (({ /** Code constraint type for access codes. */ constraint_type: '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'; } | { constraint_type: 'name_length' | 'name_must_be_unique'; /** Minimum name length constraint for access codes. */ min_length?: number | undefined; /** Maximum name length constraint for access codes. */ max_length?: number | undefined; })[] | undefined) | undefined; /** Supported code lengths for access codes. */ supported_code_lengths?: (number[] | undefined) | undefined; /** 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. */ offline_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** 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. */ online_time_frame_options?: ({ /** 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`). */ display_name: string; /** Minimum duration this option covers, as an ISO 8601 duration (for example, `PT1H` or `P29D`). Omitted when there is no minimum. */ min_duration?: string | undefined; /** Maximum duration this option covers, as an ISO 8601 duration (for example, `PT672H` or `P367D`). Omitted when there is no maximum. */ max_duration?: string | undefined; /** When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`. */ matching_start_end_time?: true | undefined; /** Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`. */ time_pairs?: { /** Label for the start/end time pairing. */ display_name: string; /** Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. */ start_time: string; /** 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. */ end_time: string; }[] | undefined; /** 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. */ start_date_recurrence_rule?: string | undefined; /** iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules. */ end_date_recurrence_rule?: string | undefined; /** IANA time zone for interpreting `time_pairs` and the date recurrence rules. Present only when the option fixes times or dates. */ time_zone?: string | undefined; }[] | undefined) | undefined; /** Maximum number of active access codes that the device supports. */ max_active_codes_supported?: (number | undefined) | undefined; /** 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). */ supports_backup_access_code_pool?: (boolean | undefined) | undefined; /** 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). */ backup_access_code_pool_enabled?: (boolean | undefined) | undefined; /** Indicates whether the device supports native entry events. */ has_native_entry_events?: (boolean | undefined) | undefined; /** Indicates whether the lock is locked. */ locked?: (boolean | undefined) | undefined; /** Keypad battery status. * @deprecated Use `accessory_keypad.battery` instead.*/ keypad_battery?: ({ /** Keypad battery charge level. */ level: number; } | undefined) | undefined; /** Indicates whether the door is open. */ door_open?: (boolean | undefined) | undefined; /** Indicates whether automatic locking is enabled. */ auto_lock_enabled?: (boolean | undefined) | undefined; /** The delay in seconds before the lock automatically locks after being unlocked. */ auto_lock_delay_seconds?: (number | undefined) | undefined; /** Audio state and capabilities of the speaker. */ speaker?: { /** 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. */ volume: number; /** Indicates whether the speaker is muted. */ is_muted: boolean; /** 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. */ has_fixed_volume: boolean; /** Minimum volume that you can set on the speaker. */ min_volume: number; /** 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. */ max_volume: number; /** Increment between the volume values that you can set on the speaker. */ volume_step: number; /** Playback state of the speaker. */ playback_state: 'playing' | 'paused' | 'idle' | 'buffering' | 'unknown'; /** Content that is currently playing on the speaker. */ now_playing?: { /** Title of the content that is currently playing. */ title?: string | undefined; /** Artist of the content that is currently playing. */ artist?: string | undefined; /** Album of the content that is currently playing. */ album?: string | undefined; } | undefined; /** 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. */ grouped_with_device_ids: string[]; /** Indicates whether the speaker can play a chime or an audio clip. */ supports_chime: boolean; /** Date and time at which the speaker first reported its current volume. */ volume_reported_at?: string | undefined; } | undefined; } & { /** Reported temperature in °F. */ temperature_fahrenheit?: number | undefined; /** Reported temperature in °C. */ temperature_celsius?: number | undefined; /** Reported relative humidity, as a value between 0 and 1, inclusive. */ relative_humidity?: number | undefined; /** HVAC mode settings that the thermostat supports. */ available_hvac_mode_settings?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco')[] | undefined; /** Fan mode settings that the thermostat supports. */ available_fan_mode_settings?: ('auto' | 'on' | 'circulate')[] | undefined; /** Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied". */ available_climate_preset_modes?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied')[] | undefined; /** Indicates whether the connected HVAC system is currently heating, as reported by the thermostat. */ is_heating?: boolean | undefined; /** Indicates whether the connected HVAC system is currently cooling, as reported by the thermostat. */ is_cooling?: boolean | undefined; /** Indicates whether the fan in the connected HVAC system is currently running, as reported by the thermostat. */ is_fan_running?: boolean | undefined; /** * @deprecated Use `current_climate_setting.fan_mode_setting` instead.*/ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ is_temporary_manual_override_active?: boolean | undefined; /** Current climate setting. */ current_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** * @deprecated use fallback_climate_preset_key to specify a fallback climate preset instead.*/ default_climate_setting?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key?: string | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit?: boolean | undefined; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete?: boolean | undefined; /** 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. */ can_use_with_thermostat_daily_programs?: boolean | undefined; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: ((string | null) | undefined) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name?: string | undefined; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: (('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined) | undefined; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed?: boolean | undefined; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: ({ /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined) | undefined; } | undefined; /** Available [climate presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat. */ available_climate_presets?: { /** Unique key to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ climate_preset_key: string; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited. */ can_edit: boolean; /** Indicates whether the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted. */ can_delete: boolean; /** 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. */ can_use_with_thermostat_daily_programs: boolean; /** User-friendly name to identify the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ name?: (string | null) | undefined; /** Display name for the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets). */ display_name: string; /** The climate preset mode for the thermostat, based on the available climate preset modes reported by the device. */ climate_preset_mode?: ('home' | 'away' | 'wake' | 'sleep' | 'occupied' | 'unoccupied') | undefined; /** 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`. */ fan_mode_setting?: ('auto' | 'on' | 'circulate') | undefined; /** 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`. */ hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined; /** 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). */ cooling_set_point_celsius?: number | undefined; /** 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). */ heating_set_point_celsius?: number | undefined; /** 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). */ cooling_set_point_fahrenheit?: number | undefined; /** 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). */ heating_set_point_fahrenheit?: number | undefined; /** 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). * @deprecated Use 'thermostat_schedule.is_override_allowed'*/ manual_override_allowed: boolean; /** Metadata specific to the Ecobee climate, if applicable. */ ecobee_metadata?: { /** Reference to the Ecobee climate, if applicable. */ climate_ref?: (string | undefined) | undefined; /** Indicates if the climate preset is optimized by Ecobee. */ is_optimized?: (boolean | undefined) | undefined; /** Indicates whether the climate preset is owned by the user or the system. */ owner?: (('user' | 'system') | undefined) | undefined; } | undefined; }[] | undefined; /** 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. */ fallback_climate_preset_key?: (string | null) | undefined; /** Active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). * @deprecated Use `active_thermostat_schedule_id` with `/thermostats/schedules/get` instead.*/ active_thermostat_schedule?: ({ /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; } | null) | undefined; /** ID of the active [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ active_thermostat_schedule_id?: (string | null) | undefined; /** Configured [daily programs](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_daily_programs?: ({ /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined) | undefined; /** Current [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs) for the thermostat. */ thermostat_weekly_program?: (({ /** ID of the thermostat daily program to run on Mondays. */ monday_program_id: string | null; /** ID of the thermostat daily program to run on Tuesdays. */ tuesday_program_id: string | null; /** ID of the thermostat daily program to run on Wednesdays. */ wednesday_program_id: string | null; /** ID of the thermostat daily program to run on Thursdays. */ thursday_program_id: string | null; /** ID of the thermostat daily program to run on Fridays. */ friday_program_id: string | null; /** ID of the thermostat daily program to run on Saturdays. */ saturday_program_id: string | null; /** ID of the thermostat daily program to run on Sundays. */ sunday_program_id: string | null; /** Date and time at which the thermostat weekly program was created. */ created_at: string; } | null) | undefined) | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ min_cooling_set_point_celsius?: number | undefined; /** Minimum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ min_cooling_set_point_fahrenheit?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °C. */ max_cooling_set_point_celsius?: number | undefined; /** Maximum [cooling set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#cooling-set-point) in °F. */ max_cooling_set_point_fahrenheit?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ min_heating_set_point_celsius?: number | undefined; /** Minimum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ min_heating_set_point_fahrenheit?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °C. */ max_heating_set_point_celsius?: number | undefined; /** Maximum [heating set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points#heating-set-point) in °F. */ max_heating_set_point_fahrenheit?: number | undefined; /** 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. */ min_heating_cooling_delta_celsius?: number | undefined; /** 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. */ min_heating_cooling_delta_fahrenheit?: number | undefined; /** Current [temperature threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds) set for the thermostat. */ temperature_threshold?: ({ /** 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. */ lower_limit_celsius: number | null; /** 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. */ lower_limit_fahrenheit: number | null; /** 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. */ upper_limit_celsius: number | null; /** 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. */ upper_limit_fahrenheit: number | null; } | undefined) | undefined; /** 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. */ thermostat_daily_program_period_precision_minutes?: (number | undefined) | undefined; /** Maximum number of climate presets that the thermostat can support for weekly programming. */ max_unique_climate_presets_per_thermostat_weekly_program?: (number | undefined) | undefined; /** 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. */ max_thermostat_daily_program_periods_per_day?: (number | undefined) | undefined; })) | undefined; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). */ is_managed: true; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ parent_device_id?: string | undefined; /** IDs of the child devices that belong to this device. Only present when the device has at least one child. */ child_device_ids?: string[] | undefined; /** Provider of the device. Represents the third-party service through which the device is controlled. */ device_provider?: { /** Provider category. Indicates the third-party provider type, such as `stable`, for stable integrations, or `internal`, for internal integrations. */ provider_category: string; /** Device provider name. Corresponds to the integration type, such as `august`, `schlage`, `yale_access`, and so on. */ device_provider_name: string; /** Display name for the device provider type. */ display_name: string; /** Image URL for the device provider. */ image_url?: string | undefined; } | undefined; /** Manufacturer of the device. Represents the hardware brand, which may differ from the provider. */ device_manufacturer?: { /** Manufacturer identifier, such as `august`, `yale`, `salto`, and so on. */ manufacturer: string; /** Display name for the manufacturer, such as `August`, `Yale`, `Salto`, and so on. */ display_name: string; /** Image URL for the manufacturer logo. */ image_url?: string | undefined; } | undefined; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; /** Current setting of the device's primary temperature controller. */ temperature_setting?: { /** Operating mode requested from the device's primary temperature controller. */ controller_mode: 'heat' | 'off'; /** Temperature to which the controller should heat, in °C. The controller can retain this value while it is off. */ heating_set_point_celsius?: number | undefined; /** Temperature to which the controller should heat, in °F. The controller can retain this value while it is off. */ heating_set_point_fahrenheit?: number | undefined; } | undefined; /** 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. */ named_sensors?: { /** Stable, hardware-defined name of the sensor, such as a port number. */ sensor_name: string; /** Display name of the sensor. Defaults to `sensor_name`. */ display_name: string; /** Temperature in °C, if the device measures temperature. */ temperature_celsius?: number | undefined; /** Temperature in °F, if the device measures temperature. */ temperature_fahrenheit?: number | undefined; /** Relative humidity, as a value between 0 and 1, inclusive, if the device measures humidity. */ relative_humidity?: number | undefined; /** Noise level in decibels, if the device measures noise. */ noise_level_decibels?: number | undefined; /** Noise level as a Noise Risk Score (NRS), if the device reports one. */ noise_level_nrs?: number | undefined; /** Carbon dioxide concentration in parts per million, if the device measures it. */ co2_ppm?: number | undefined; /** Carbon monoxide concentration in parts per million, if the device measures it. */ co_ppm?: number | undefined; /** Air quality index, if the device measures it. */ air_quality_index?: number | undefined; /** Mold risk level as reported by the device, if the device measures it. */ mold_risk_level?: string | undefined; /** Indicates whether the device detects occupancy. */ is_occupancy_detected?: boolean | undefined; /** Estimated number of occupants detected by the device. */ estimated_occupant_count?: number | undefined; /** Indicates whether the device detects smoking, if the device measures it. */ is_smoking_detected?: boolean | undefined; }[] | undefined; /** Indicates whether the device represents spa water rather than pool water. Present only on pool and spa devices. */ is_spa?: boolean | undefined; /** Indicates whether the water is circulating. Temperature readings are only live while it is circulating. Omitted if the controller does not report it. */ is_water_circulating?: boolean | undefined; /** Salt level reported by the chlorinator, in parts per million. Omitted if the system has no salt chlorinator. */ salt_ppm?: number | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[] | undefined; acs_entrances?: { /** 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). */ acs_system_id: string; /** ID of the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; /** IDs of the spaces that the entrance is in. */ space_ids: string[]; /** Date and time at which the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) was created. */ created_at: string; /** Display name for the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ display_name: string; /** 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). */ connected_account_id: string; /** Errors associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'entrance_removed'; }[]; /** Warnings associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_entrance_access_code_support_removed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_shares_zone'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'entrance_setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; })[]; /** Latch-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ latch_metadata?: { /** Accessibility type in the Latch access system. */ accessibility_type?: (string | undefined) | undefined; /** Name of the door in the Latch access system. */ door_name?: (string | undefined) | undefined; /** Type of the door in the Latch access system. */ door_type?: (string | undefined) | undefined; /** Indicates whether the entrance is connected. */ is_connected?: (boolean | undefined) | undefined; } | undefined; /** Hotek-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ hotek_metadata?: { /** Room number of the entrance. */ room_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_number?: (string | undefined) | undefined; /** Display name of the entrance. */ common_area_name?: (string | undefined) | undefined; } | undefined; /** Visionline-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ visionline_metadata?: { /** Name of the door in the Visionline access system. */ door_name?: (string | undefined) | undefined; /** Category of the door in the Visionline access system. */ door_category?: (('entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)') | undefined) | undefined; /** Profile for the door in the Visionline access system. */ profiles?: ({ /** Door profile ID in the Visionline access system. */ visionline_door_profile_id?: (string | undefined) | undefined; /** Door profile type in the Visionline access system. */ visionline_door_profile_type?: (('BLE' | 'commonDoor' | 'touch') | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_ks_metadata?: { /** Name of the door in the Salto KS access system. */ door_name?: (string | undefined) | undefined; /** Locked state of the door in the Salto KS access system. */ locked_state?: (string | undefined) | undefined; /** Type of the lock in the Salto KS access system. */ lock_type?: (string | undefined) | undefined; /** Indicates whether the door access device is online. */ online?: (boolean | undefined) | undefined; /** Battery level of the door access device. */ battery_level?: (string | undefined) | undefined; /** Indicates whether the door is left open. */ left_open_alarm?: (boolean | undefined) | undefined; /** Indicates whether an intrusion alarm is active on the door. */ intrusion_alarm?: (boolean | undefined) | undefined; /** Indicates whether privacy mode is enabled for the lock. */ privacy_mode?: (boolean | undefined) | undefined; } | undefined; /** dormakaba Community-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_community_metadata?: { /** Type of access point profile in the dormakaba Community access system. */ access_point_profile?: (string | undefined) | undefined; } | undefined; /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ assa_abloy_vostio_metadata?: { /** Type of the door in the Vostio access system. */ door_type?: (('CommonDoor' | 'EntranceDoor' | 'GuestDoor' | 'Elevator') | undefined) | undefined; /** Name of the door in the Vostio access system. */ door_name?: (string | undefined) | undefined; /** Number of the door in the Vostio access system. */ door_number?: (number | undefined) | undefined; /** Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system. */ stand_open?: (boolean | undefined) | undefined; /** PMS ID of the door in the Vostio access system. */ pms_id?: (string | undefined) | undefined; } | undefined; /** Salto Space-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ salto_space_metadata?: { /** Door ID in the Salto Space access system. */ door_id?: (string | undefined) | undefined; /** Name of the door in the Salto Space access system. */ door_name?: (string | undefined) | undefined; /** Description of the door in the Salto Space access system. */ door_description?: (string | undefined) | undefined; /** Indicates whether AuditOnKeys is enabled for the door in the Salto Space access system. */ audit_on_keys?: (boolean | undefined) | undefined; /** Name of the room in the Salto Space access system. */ room_name?: (string | undefined) | undefined; /** Description of the room in the Salto Space access system. */ room_description?: (string | undefined) | undefined; } | undefined; /** dormakaba Ambiance-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ dormakaba_ambiance_metadata?: { /** Name of the access point in the dormakaba Ambiance access system. */ access_point_name?: (string | undefined) | undefined; } | undefined; /** Brivo-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ brivo_metadata?: { /** ID of the access point in the Brivo access system. */ access_point_id?: (string | undefined) | undefined; /** ID of the site that the access point belongs to. */ site_id?: (number | undefined) | undefined; /** Name of the site that the access point belongs to. */ site_name?: (string | undefined) | undefined; } | undefined; /** Avigilon Alta-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ avigilon_alta_metadata?: { /** Entry name for an Avigilon Alta system. */ entry_name?: (string | undefined) | undefined; /** Organization name for an Avigilon Alta system. */ org_name?: (string | undefined) | undefined; /** Zone ID for an Avigilon Alta system. */ zone_id?: (number | undefined) | undefined; /** Zone name for an Avigilon Alta system. */ zone_name?: (string | undefined) | undefined; /** Site ID for an Avigilon Alta system. */ site_id?: (number | undefined) | undefined; /** Site name for an Avigilon Alta system. */ site_name?: (string | undefined) | undefined; /** Total count of entry relays for an Avigilon Alta system. */ entry_relays_total_count?: (number | undefined) | undefined; } | undefined; /** Akiles-specific metadata associated with the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ akiles_metadata?: { /** ID of the Akiles gadget. */ gadget_id?: (string | undefined) | undefined; /** ID of the Akiles site the gadget belongs to. */ site_id?: (string | undefined) | undefined; /** Name of the Akiles site the gadget belongs to. */ site_name?: (string | undefined) | undefined; /** Actions the gadget exposes (for example, open). */ actions?: ({ /** ID of the gadget action. */ id?: (string | undefined) | undefined; /** Name of the gadget action. */ name?: (string | undefined) | undefined; }[] | undefined) | undefined; } | undefined; /** Indicates whether the [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details) is currently locked. */ is_locked?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with mobile key credentials. */ can_unlock_with_mobile_key?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with card credentials. */ can_unlock_with_card?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with pin codes. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the ACS entrance can be unlocked with cloud key credentials. */ can_unlock_with_cloud_key?: boolean | undefined; /** Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key. */ can_belong_to_reservation?: boolean | undefined; }[] | undefined; acs_systems?: { /** ID of the default credential manager `acs_system` for this [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ default_credential_manager_acs_system_id?: (string | null) | undefined; /** ID of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_system_id: string; /** Number of users in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_user_count?: number | undefined; /** Number of access groups in the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ acs_access_group_count?: number | undefined; /** Brand-specific terminology for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) type. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Indicates whether the `acs_system` is a credential manager. */ is_credential_manager: boolean; /** Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ visionline_metadata?: { /** Keyset loaded into a reader. Mobile keys and reader administration tools securely authenticate only with readers programmed with a matching keyset. */ mobile_access_uuid?: (string | undefined) | undefined; /** Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager. */ system_id?: (string | undefined) | undefined; /** 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. */ lan_address?: (string | undefined) | undefined; } | undefined; /** * @deprecated Use `external_type`.*/ system_type?: ('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') | undefined; /** * @deprecated Use `external_type_display_name`.*/ system_type_display_name?: string | undefined; /** Location information for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ location: { /** Time zone in which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) is located. */ time_zone: string | null; }; /** Name of the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ name: string; /** Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created. */ created_at: string; /** ID of the workspace that contains the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ workspace_id: string; /** 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). * @deprecated Use `connected_account_id`.*/ connected_account_ids: string[]; /** ID of the connected account associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ connected_account_id: string; /** URL for the image that represents the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ image_url: string; /** Alternative text for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) image. */ image_alt_text: string; /** Errors associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'seam_bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; /** Indicates whether the error is related to the [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'visionline_instance_unreachable'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'user_license_limit_reached'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_system_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_certification_expired'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_service_unavailable'; })[]; /** Warnings associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_custom_pins_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_does_not_match_location'; /** * @deprecated this field is deprecated.*/ misconfigured_acs_entrance_ids?: string[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_system'; })[]; }[] | undefined; acs_users?: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; /** Indicates whether Seam manages the access system user. */ is_managed: true; }[] | undefined; acs_access_groups?: { /** ID of the access group. */ acs_access_group_id: string; /** ID of the access control system that contains the access group. */ acs_system_id: string; /** ID of the workspace that contains the access group. */ workspace_id: string; /** ID of the connected account that contains the access group. */ connected_account_id: string; /** Name of the access group. */ name: string; /** * @deprecated Use `external_type`.*/ access_group_type: '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'; /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string; /** Display name for the access group. */ display_name: string; /** Brand-specific terminology for the access group type. */ external_type: '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'; /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string; /** Date and time at which the access group was created. */ created_at: string; /** Errors associated with the `acs_access_group`. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_create_on_acs_system'; }[]; /** Warnings associated with the `acs_access_group`. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_access_group'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; })[]; /** `starts_at` and `ends_at` timestamps for the access group's access. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ mutation_code: 'deferring_deletion'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system. */ mutation_code: 'updating_group_information'; /** Old access group information. */ from: { /** Name of the access group. */ name?: (string | null) | undefined; }; /** New access group information. */ to: { /** Name of the access group. */ name?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system. */ mutation_code: 'updating_user_membership'; /** Old user membership. */ from: { /** Old user ID. */ acs_user_id: string | null; }; /** New user membership. */ to: { /** New user ID. */ acs_user_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system. */ mutation_code: 'updating_entrance_membership'; /** Old entrance membership. */ from: { /** Old entrance ID. */ acs_entrance_id: string | null; }; /** New entrance membership. */ to: { /** New entrance ID. */ acs_entrance_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled user membership change is pending for this access group. */ mutation_code: 'deferring_user_membership_update'; /** ID of the user involved in the scheduled change. */ acs_user_id: string; /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing'; })[]; /** Indicates whether Seam manages the access group. */ is_managed: true; }[] | undefined; acs_encoders?: { /** ID of the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ acs_encoder_id: string; /** 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). */ acs_system_id: string; /** 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). */ connected_account_id: string; /** ID of the workspace that contains the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ workspace_id: string; /** Errors associated with the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'acs_encoder_removed'; }[]; /** 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. */ created_at: string; /** Display name for the [encoder](https://www.seam.co/docs/low-level-apis/access-systems/working-with-card-encoders-and-scanners). */ display_name: string; }[] | undefined; action_attempts?: ({ /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; })[] | undefined; client_sessions?: { /** ID of the client session. */ client_session_id: string; /** ID of the workspace associated with the client session. */ workspace_id: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) was created. */ created_at: string; /** Date and time at which the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens) expires. */ expires_at: string; /** Client session token associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ token: string; /** Your user ID for the user associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ user_identifier_key: string | null; /** Number of devices associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ device_count: number; /** Customer key associated with the [client session](https://www.seam.co/docs/core-concepts/authentication/client-session-tokens). */ customer_key?: string | undefined; /** 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). */ connected_account_ids: string[]; /** 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). */ connect_webview_ids: string[]; /** 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. * @deprecated Use `user_identity_id` instead.*/ user_identity_ids: string[]; /** 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. */ user_identity_id?: string | undefined; }[] | undefined; unmanaged_acs_users?: { /** ID of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ acs_user_id: string; /** 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). */ acs_system_id: string; /** ID of the HID access control system associated with the user. */ hid_acs_system_id?: string | undefined; /** ID of the workspace that contains the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ workspace_id: string; /** Date and time at which the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) was created. */ created_at: string; /** Display name for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ display_name: string; /** Brand-specific terminology for the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management) type. */ external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** 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). */ is_suspended?: boolean | undefined; /** `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. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** ID of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_id?: string | undefined; /** Full name of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_full_name?: (string | null) | undefined; /** Email address of the user identity associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ user_identity_email_address?: (string | null) | undefined; /** 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`). */ user_identity_phone_number?: (string | null) | undefined; /** Warnings associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'salto_ks_user_not_subscribed'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'acs_user_inactive'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'unknown_issue_with_acs_user'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; warning_code: 'latch_resident_user'; })[]; /** Errors associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'deleted_externally'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'salto_ks_subscription_limit_exceeded'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_create_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_update_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'failed_to_delete_on_acs_system'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; error_code: 'latch_conflict_with_resident_user'; })[]; /** 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. */ pending_mutations?: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time. */ mutation_code: 'deferring_creation'; /** Optional: When the user creation is scheduled to occur. */ scheduled_at?: (string | undefined) | null; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system. */ mutation_code: 'updating_user_information'; /** Old access system user information. */ from: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; /** New access system user information. */ to: { /** Email address of the access system user. */ email_address?: (string | null) | undefined; /** Full name of the access system user. */ full_name?: (string | null) | undefined; /** Phone number of the access system user. */ phone_number?: ((string | undefined) | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Starting time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system. */ mutation_code: 'updating_suspension_state'; /** Old user suspension state information. */ from: { is_suspended: boolean; }; /** New user suspension state information. */ to: { is_suspended: boolean; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system. */ mutation_code: 'updating_group_membership'; /** Old access group membership. */ from: { /** Old access group ID. */ acs_access_group_id: string | null; }; /** New access group membership. */ to: { /** New access group ID. */ acs_access_group_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled access group membership change is pending for this user. */ mutation_code: 'deferring_group_membership_update'; /** ID of the access group involved in the scheduled change. */ acs_access_group_id: string; /** Whether the user is scheduled to be added to or removed from the access group. */ variant: 'adding' | 'removing'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */ mutation_code: 'updating_credential_assignment'; /** Previous credential assignment. */ from: { /** Previous credential ID. */ acs_credential_id: string | null; }; /** New credential assignment. */ to: { /** New credential ID. */ acs_credential_id: string | null; }; })[] | undefined; /** The last time an internal sync job completed for this access system user. */ last_successful_sync_at: string | null; /** 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). */ connected_account_id: string; /** Salto Space-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_space_metadata?: { /** User ID in the Salto Space access system. */ user_id?: (string | undefined) | undefined; /** Indicates whether AuditOpenings is enabled for the user in the Salto Space access system. */ audit_openings?: (boolean | undefined) | undefined; } | undefined; /** Salto KS-specific metadata associated with the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ salto_ks_metadata?: { /** 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. */ is_subscribed?: (boolean | undefined) | undefined; } | undefined; /** Full name of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ full_name?: string | undefined; /** * @deprecated use email_address.*/ email?: string | undefined; /** Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management). */ email_address?: string | undefined; /** 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`). */ phone_number?: string | undefined; is_managed: false; }[] | undefined; unmanaged_acs_access_groups?: { /** ID of the access group. */ acs_access_group_id: string; /** ID of the access control system that contains the access group. */ acs_system_id: string; /** ID of the workspace that contains the access group. */ workspace_id: string; /** ID of the connected account that contains the access group. */ connected_account_id: string; /** Name of the access group. */ name: string; /** * @deprecated Use `external_type`.*/ access_group_type: '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'; /** * @deprecated Use `external_type_display_name`.*/ access_group_type_display_name: string; /** Display name for the access group. */ display_name: string; /** Brand-specific terminology for the access group type. */ external_type: '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'; /** Display name that corresponds to the brand-specific terminology for the access group type. */ external_type_display_name: string; /** Date and time at which the access group was created. */ created_at: string; /** Errors associated with the `acs_access_group`. */ errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_create_on_acs_system'; }[]; /** Warnings associated with the `acs_access_group`. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_access_group'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; })[]; /** `starts_at` and `ends_at` timestamps for the access group's access. */ access_schedule?: { /** 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. */ starts_at: string; /** 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. */ ends_at: string | null; } | undefined; /** Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */ mutation_code: 'deleting'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */ mutation_code: 'deferring_deletion'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system. */ mutation_code: 'updating_group_information'; /** Old access group information. */ from: { /** Name of the access group. */ name?: (string | null) | undefined; }; /** New access group information. */ to: { /** Name of the access group. */ name?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system. */ mutation_code: 'updating_access_schedule'; /** Old access schedule information. */ from: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; /** New access schedule information. */ to: { /** Starting time for the access schedule. */ starts_at: string | null; /** Ending time for the access schedule. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system. */ mutation_code: 'updating_user_membership'; /** Old user membership. */ from: { /** Old user ID. */ acs_user_id: string | null; }; /** New user membership. */ to: { /** New user ID. */ acs_user_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system. */ mutation_code: 'updating_entrance_membership'; /** Old entrance membership. */ from: { /** Old entrance ID. */ acs_entrance_id: string | null; }; /** New entrance membership. */ to: { /** New entrance ID. */ acs_entrance_id: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that a scheduled user membership change is pending for this access group. */ mutation_code: 'deferring_user_membership_update'; /** ID of the user involved in the scheduled change. */ acs_user_id: string; /** Whether the user is scheduled to be added to or removed from this access group. */ variant: 'adding' | 'removing'; })[]; is_managed: false; }[] | undefined; unmanaged_devices?: { /** ID of the device. */ device_id: string; /** 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`. */ device_type: ('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') | 'keynest_key' | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_resideo_thermostat' | 'tado_thermostat' | 'sensi_thermostat' | 'sensibo_thermostat' | 'cielo_thermostat' | 'smartthings_thermostat') | ('ios_phone' | 'android_phone') | ('ring_camera' | 'tapo_camera' | 'arlo_camera' | 'reolink_camera' | 'unifi_protect_camera') | 'sonos_speaker' | 'alertify_sensor' | ('hayward_pool_controller' | 'jandy_pool_controller' | 'hayward_pool' | 'jandy_pool'); /** Unique identifier for the account associated with the device. */ connected_account_id: string; /** Location information for the device. */ location?: { /** Name of the device location. */ location_name?: string | undefined; /** Name of the room within the device location, when the provider reports one. */ room_name?: string | undefined; /** Time zone of the device location. */ time_zone?: string | undefined; /** Time zone of the device location. * @deprecated Use `time_zone` instead.*/ timezone?: string | undefined; } | undefined; /** 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). */ capabilities_supported: ('access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone' | 'pool')[]; /** Unique identifier for the Seam workspace associated with the device. */ workspace_id: string; /** 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. */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** 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. */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'partial_backup_access_code_pool'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'many_active_backup_codes'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ttlock_weak_gateway_signal'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'power_saving_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'temperature_threshold_exceeded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_communication_degraded'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_has_flaky_connection'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_office_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'privacy_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_lock_access_code_support_removed'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_phone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'lockly_time_zone_not_configured'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'ultraloq_time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_unknown'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_zone_mismatch'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'two_n_device_missing_timezone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'hub_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'service_mode'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_issue'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'keynest_unsupported_locker'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_setup_required'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'accessory_keypad_low_battery'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'battery_replacement_recommended'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unreliable_online_status'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached'; /** Number of active access codes on the device when the warning was set. */ active_access_code_count: number; /** Maximum number of active access codes supported by the device. */ max_active_access_code_count: number; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'subscription_required_for_additional_capabilities'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'cloud_recording_not_enabled'; })[]; /** Date and time at which the device object was created. */ created_at: string; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ display_name: string; /** Indicates whether the device is online. */ is_online: boolean; /** Indicates that Seam does not manage the device. */ is_managed: false; /** properties of the device. */ properties?: { /** Accessory keypad properties and state. */ accessory_keypad?: { /** Indicates if an accessory keypad is connected to the device. */ is_connected: boolean; /** Keypad battery properties. */ battery?: { level: number; } | undefined; } | undefined; /** Name of the device. * @deprecated use device.display_name instead*/ name: string; /** Indicates whether the device is online. */ online: boolean; /** 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. */ manufacturer?: string | undefined; /** Image URL for the device. */ image_url?: string | undefined; /** Alt text for the device image. */ image_alt_text?: string | undefined; /** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */ battery_level?: number | undefined; /** Represents the current status of the battery charge level. */ battery?: { /** Battery charge level as a value between 0 and 1, inclusive. */ level: number; /** 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. */ status: 'critical' | 'low' | 'good' | 'full'; } | undefined; /** Indicates whether it is currently possible to use online access codes for the device. * @deprecated use device.can_program_online_access_codes*/ online_access_codes_enabled?: boolean | undefined; /** Indicates whether it is currently possible to use offline access codes for the device. * @deprecated use device.can_program_offline_access_codes*/ offline_access_codes_enabled?: boolean | undefined; /** Device model-related properties. */ model: { /** Indicates whether the device can connect a accessory keypad. */ can_connect_accessory_keypad?: boolean | undefined; /** Display name of the device model. */ display_name: string; /** Display name that corresponds to the manufacturer-specific terminology for the device. */ manufacturer_display_name: string; /** Indicates whether the device has a built in accessory keypad. */ has_built_in_keypad?: boolean | undefined; /** * @deprecated use device.can_program_offline_access_codes.*/ offline_access_codes_supported?: boolean | undefined; /** * @deprecated use device.can_program_online_access_codes.*/ online_access_codes_supported?: boolean | undefined; /** * @deprecated use device.properties.model.can_connect_accessory_keypad*/ accessory_keypad_supported?: boolean | undefined; }; } | undefined; /** Indicates whether the device supports remote unlocking. */ can_remotely_unlock?: boolean | undefined; /** Indicates whether the device supports remote locking. */ can_remotely_lock?: boolean | undefined; /** Indicates whether the device supports programming offline access codes. */ can_program_offline_access_codes?: boolean | undefined; /** Indicates whether the device supports programming online access codes. */ can_program_online_access_codes?: boolean | undefined; /** Indicates whether the thermostat supports heating. */ can_hvac_heat?: boolean | undefined; /** Indicates whether the thermostat supports cooling. */ can_hvac_cool?: boolean | undefined; /** Indicates whether the thermostat supports simultaneous heating and cooling. */ can_hvac_heat_cool?: boolean | undefined; /** Indicates whether the thermostat can be turned off. */ can_turn_off_hvac?: boolean | undefined; /** 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. */ can_activate_weekly_program?: boolean | undefined; /** Indicates whether the device supports simulating removal in a sandbox. */ can_simulate_removal?: boolean | undefined; /** Indicates whether the device supports simulating connection in a sandbox. */ can_simulate_connection?: boolean | undefined; /** Indicates whether the device supports simulating disconnection in a sandbox. */ can_simulate_disconnection?: boolean | undefined; /** Indicates whether the lock supports unlocking with an access code. */ can_unlock_with_code?: boolean | undefined; /** Indicates whether the thermostat supports running climate programs. */ can_run_thermostat_programs?: boolean | undefined; /** Indicates whether the thermostat supports weekday/weekend climate programs. */ can_program_thermostat_programs_as_weekday_weekend?: boolean | undefined; /** Indicates whether the thermostat supports different climate programs for each day of the week. */ can_program_thermostat_programs_as_different_each_day?: boolean | undefined; /** Indicates whether the thermostat supports a single climate program applied to every day. */ can_program_thermostat_programs_as_same_each_day?: boolean | undefined; /** Indicates whether the hub supports simulating connection in a sandbox. */ can_simulate_hub_connection?: boolean | undefined; /** Indicates whether the hub supports simulating disconnection in a sandbox. */ can_simulate_hub_disconnection?: boolean | undefined; /** Indicates whether the device supports simulating a paid subscription in a sandbox. */ can_simulate_paid_subscription?: boolean | undefined; /** Indicates whether the lock supports configuring automatic locking. */ can_configure_auto_lock?: boolean | undefined; /** Indicates whether the camera can stream live video through a camera live view session. `false` while the camera is offline. */ can_stream_live_video?: boolean | undefined; /** Indicates whether the speaker supports setting its volume. */ can_set_speaker_volume?: boolean | undefined; /** Indicates whether the speaker supports muting. */ can_mute_speaker?: boolean | undefined; /** Indicates whether the speaker supports unmuting. */ can_unmute_speaker?: boolean | undefined; /** Indicates whether the speaker supports pausing playback. */ can_pause_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports resuming playback. */ can_resume_speaker_playback?: boolean | undefined; /** Indicates whether the speaker supports playing a chime. */ can_play_speaker_chime?: boolean | undefined; /** Indicates whether the speaker supports listing and playing the favorites saved in the speaker manufacturer's app, such as playlists and radio stations. */ can_play_speaker_favorite?: boolean | undefined; /** Indicates whether the speaker supports playing an audio clip from a URL. */ can_play_speaker_audio_clip?: boolean | undefined; /** Indicates whether the device supports controlling its primary target temperature. */ can_control_temperature?: boolean | undefined; }[] | undefined; connect_webviews?: { /** ID of the Connect Webview. */ connect_webview_id: string; /** ID of the workspace that contains the Connect Webview. */ workspace_id: string; /** Date and time at which the Connect Webview was created. */ created_at: string; /** ID of the connected account associated with the Connect Webview. */ connected_account_id: string | null; /** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */ url: string; /** Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`. */ device_selection_mode: 'none' | 'single' | 'multiple'; /** 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). */ accepted_providers: string[]; /** 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`. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** * @deprecated Unused. Will be removed.*/ accepted_devices: string[]; /** * @deprecated Unused. Will be removed.*/ any_device_allowed: boolean; /** Indicates whether any provider is allowed. */ any_provider_allowed: boolean; /** Indicates whether the user logged in successfully using the Connect Webview. */ login_successful: boolean; /** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */ status: 'pending' | 'failed' | 'authorized'; /** 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. */ custom_redirect_url: string | null; /** URL to which the Connect Webview should redirect when an unexpected error occurs. */ custom_redirect_failure_url: string | null; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** 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. */ wait_for_device_creation: boolean; /** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */ authorized_at: string | null; /** 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). */ selected_provider: string | null; /** The customer key associated with this webview, if any. */ customer_key?: string | undefined; }[] | undefined; spaces?: { /** ID of the space. */ space_id: string; /** ID of the workspace associated with the space. */ workspace_id: string; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** Name of the space. */ name: string; /** Display name for the space. */ display_name: string; /** Date and time at which the space was created. */ created_at: string; /** Number of devices in the space. */ device_count: number; /** Number of entrances in the space. */ acs_entrance_count: number; /** Customer key associated with the space. */ customer_key?: string | undefined; /** 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). */ customer_data?: { /** IANA time zone for the space, e.g. America/Los_Angeles. */ time_zone?: (string | null) | undefined; /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkin_time?: (string | null) | undefined; /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ default_checkout_time?: (string | null) | undefined; /** Postal address for the space. */ address?: (string | null) | undefined; } | undefined; /** Geographic coordinates (latitude and longitude) of the space. */ geolocation?: ({ /** Latitude of the space, in decimal degrees. */ latitude: number; /** Longitude of the space, in decimal degrees. */ longitude: number; } | null) | undefined; /** Warnings associated with the space. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'noise_sensor_configuration_mismatch'; /** IDs of the noise sensors in the space that Seam could not bring in line with the noise sensor automation. */ device_ids: string[]; })[]; /** */ parent_space_id?: string | undefined; /** */ parent_space_key?: string | undefined; }[] | undefined; access_methods?: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }[] | undefined; access_grants?: { /** ID of the Seam workspace associated with the Access Grant. */ workspace_id: string; /** ID of the Access Grant. */ access_grant_id: string; /** Unique key for the access grant within the workspace. */ access_grant_key?: string | undefined; /** Reservation key for the access grant. */ reservation_key?: string | undefined; /** ID of user identity to which the Access Grant gives access. */ user_identity_id: string; /** * @deprecated Use `space_ids`.*/ location_ids: string[]; /** IDs of the spaces to which the Access Grant gives access. */ space_ids: string[]; /** Access methods that the user requested for the Access Grant. */ requested_access_methods: { /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */ code?: string | undefined; /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */ instant_key_max_use_count?: number | undefined; /** Date and time at which the requested access method was added to the Access Grant. */ created_at: string; /** IDs of the access methods created for the requested access method. */ created_access_method_ids: string[]; }[]; /** IDs of the access methods created for the Access Grant. */ access_method_ids: string[]; /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */ client_session_token?: string | undefined; /** Name of the Access Grant. If not provided, the display name will be computed. */ name: string | null; /** Display name of the Access Grant. */ display_name: string; /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */ instant_key_url?: string | undefined; /** Date and time at which the Access Grant was created. */ created_at: string; /** Date and time at which the Access Grant starts. */ starts_at: string; /** Date and time at which the Access Grant ends. */ ends_at: string | null; /** 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. */ display_status: string; /** Warnings associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'underprovisioned_access'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'overprovisioned_access'; /** 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). */ failed_devices?: { /** Device whose access code could not be revoked. */ device_id: string; /** Reason the access code could not be revoked. */ error_code: 'offline_access_code_not_revocable'; /** Human-readable description of why revocation failed. */ message: string; }[] | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** ID of the device where the requested code was unavailable. Present when the code was set directly on a device. */ device_id?: string | undefined; /** ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code. */ access_method_id?: string | undefined; /** The originally requested PIN code that was unavailable. */ original_code: string; /** The new PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_does_not_support_access_codes'; /** ID of the device that does not support access codes. */ device_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_time_constraints_violated'; /** ID of the device whose time constraints the access grant violates. */ device_id: string; /** Specific reason why the grant's times are not programmable on the device. */ reason: 'duration_exceeds_max' | 'times_do_not_match_slots' | 'ongoing_not_supported'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'access_revoked'; /** ID of the access method whose access was revoked. */ access_method_id: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'mobile_key_withheld'; })[]; /** Errors associated with the [access grant](https://www.seam.co/docs/use-cases/granting-access). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'cannot_create_requested_access_methods'; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** ID of the customization profile associated with the Access Grant. */ customization_profile_id?: string | undefined; /** List of pending mutations for the access grant. This shows updates that are in progress. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */ mutation_code: 'updating_spaces'; /** Previous location configuration. */ from: { /** Previous device IDs where access codes existed. */ device_ids: string[]; }; /** New location configuration. */ to: { /** New device IDs where access codes should be created. */ device_ids: string[]; /** Common code key to ensure PIN code reuse across devices. */ common_code_key?: (string | null) | undefined; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */ mutation_code: 'updating_access_times'; /** IDs of the access methods being updated. */ access_method_ids: string[]; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; })[]; }[] | undefined; connected_accounts?: { /** ID of the connected account. */ connected_account_id: string; /** Date and time at which the connected account was created. */ created_at?: string | undefined; /** User identifier associated with the connected account. * @deprecated Use `display_name` instead.*/ user_identifier?: { /** Username of the user identifier associated with the connected account. */ username?: string | undefined; /** API URL for the user identifier associated with the connected account. */ api_url?: string | undefined; /** Email address of the user identifier associated with the connected account. */ email?: string | undefined; /** Phone number of the user identifier associated with the connected account. */ phone?: string | undefined; /** Indicates whether the user identifier associated with the connected account is exclusive. */ exclusive?: boolean | undefined; } | undefined; /** Type of connected account. */ account_type?: string | undefined; /** Display name for the connected account type. */ account_type_display_name: string; /** Logo URL for the connected account provider. */ image_url?: string | undefined; /** Display name for the connected account. */ display_name: string; /** Errors associated with the connected account. */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Salto KS metadata associated with the connected account that has an error. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has an error. */ sites?: ({ /** ID of a Salto site associated with the connected account that has an error. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has an error. */ site_name?: (string | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */ subscribed_site_user_count?: (number | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */ site_user_subscription_limit?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; })[]; /** Warnings associated with the connected account. */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'scheduled_maintenance_window'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_connected_account'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'salto_ks_subscription_limit_almost_reached'; /** Salto KS metadata associated with the connected account that has a warning. */ salto_ks_metadata: { /** Salto sites associated with the connected account that has a warning. */ sites?: ({ /** ID of a Salto site associated with the connected account that has a warning. */ site_id?: (string | undefined) | undefined; /** Name of a Salto site associated with the connected account that has a warning. */ site_name?: (string | undefined) | undefined; /** Subscription limit of site users for a Salto site associated with the connected account that has a warning. */ site_user_subscription_limit?: (number | undefined) | undefined; /** Count of subscribed site users for a Salto site associated with the connected account that has a warning. */ subscribed_site_user_count?: (number | undefined) | undefined; }[] | undefined) | undefined; }; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'account_reauthorization_requested'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'provider_service_unavailable'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'dormakaba_sites_unapproved'; })[]; /** 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. */ custom_metadata: { [x: string]: string | boolean; }; /** 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. */ automatically_manage_new_devices: boolean; /** Your unique key for the customer associated with this connected account. */ customer_key?: string | undefined; /** List of capabilities that were accepted during the account connection process. */ accepted_capabilities: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera' | 'speaker' | 'pool')[]; /** 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. */ default_checkin_time?: string | undefined; /** Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration. */ default_checkout_time?: string | undefined; /** IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration. */ time_zone?: string | undefined; /** 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. */ ical_feed_origin?: string | undefined; /** For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration. */ ical_url?: string | undefined; }[] | undefined; events?: ({ /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.changed'; /** List of properties that changed on the access code. */ changed_properties?: { /** Name of the property that changed (e.g. `code`). */ property: string; /** Previous value of the property, or null if not set. */ from: string | null; /** New value of the property, or null if cleared. */ to: string | null; }[] | undefined; /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */ change_reason?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.name_changed'; /** Previous access code name configuration. */ from: { /** Previous name of the access code. */ name: string | null; }; /** New access code name configuration. */ to: { /** New name of the access code. */ name: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.code_changed'; /** Previous pin code configuration. */ from: { /** Previous pin code. */ code: string | null; }; /** New pin code configuration. */ to: { /** New pin code. */ code: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.time_frame_changed'; /** Previous time frame configuration. */ from: { /** Previous start time. */ starts_at: string | null; /** Previous end time. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time. */ starts_at: string | null; /** New end time. */ ends_at: string | null; }; /** Human-readable description of the change and its source. */ description: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.mutations_requested'; /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */ requested_mutations: { /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */ mutation_code: 'updating_name' | 'updating_code' | 'updating_time_frame' | 'deleting' | 'creating' | 'deferring_creation'; /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ from?: { [x: string]: unknown; } | undefined; /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ to?: { [x: string]: unknown; } | undefined; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.scheduled_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.set_on_device'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.removed_from_device'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_setting_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_set_on_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.issued'; /** Code for the affected access code. */ code: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_issuing'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_issue'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_update'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_delete'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted'; /** Code for the affected access code. */ code: string | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.delay_in_removing_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.failed_to_remove_from_device'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.modified_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.deleted_external_to_seam'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.backup_access_code_pulled'; /** ID of the backup access code that was pulled from the pool. */ backup_access_code_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.failed_to_convert_to_managed'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the access code. */ access_code_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access code. */ access_code_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access code. */ access_code_id: string; /** ID of the device associated with the affected access code. */ device_id: string; /** ID of the connected account associated with the affected access code. */ connected_account_id: string; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'access_code.unmanaged.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_all_doors'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_granted_to_door'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_to_door_lost'; /** ID of the affected [entrance](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details). */ acs_entrance_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.access_times_changed'; /** Key of the affected Access Grant (if present). */ access_grant_key?: string | undefined; /** The new start time for the access grant. */ starts_at?: string | undefined; /** The new end time for the access grant. */ ends_at?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Access Grant. */ access_grant_id: string; event_type: 'access_grant.could_not_create_requested_access_methods'; /** Description of why the access methods could not be created. */ error_message: string; /** 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. */ missing_device_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.issued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.revoked'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.card_encoding_required'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.deleted'; /** 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. */ failed_to_delete_access_code_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.reissued'; /** The actual PIN code for code access methods (only present when mode is 'code'). */ code?: string | undefined; /** Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used). */ is_backup_code?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.delay_in_issuing'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected access method. */ access_method_id: string; /** IDs of the access grants associated with this access method. */ access_grant_ids: string[]; /** Keys of the access grants associated with this access method (if present). */ access_grant_keys?: string[] | undefined; event_type: 'access_method.failed_to_issue'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; event_type: 'acs_system.disconnected'; /** Errors associated with the access control system. */ acs_system_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the access control system. */ acs_system_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.issued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.reissued'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected credential. */ acs_credential_id: string; event_type: 'acs_credential.invalidated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.created'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access system user. */ acs_user_id: string; event_type: 'acs_user.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected encoder. */ acs_encoder_id: string; event_type: 'acs_encoder.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected access group. */ acs_access_group_id: string; event_type: 'acs_access_group.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the connected account. */ connected_account_id?: string | undefined; /** ID of the access system. */ acs_system_id: string; /** ID of the affected entrance. */ acs_entrance_id: string; event_type: 'acs_entrance.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected client session. */ client_session_id: string; event_type: 'client_session.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.connected'; /** ID of the Connect Webview associated with the event. */ connect_webview_id?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.created'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.successful_login'; /** ID of the Connect Webview associated with the event. */ connect_webview_id: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.deleted'; /** */ connected_account_type?: string | undefined; /** The customer key associated with this connected account, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.completed_first_sync_after_reconnection'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected connected account. */ connected_account_id: string; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'connected_account.reauthorization_requested'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.lock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.unlock_door.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_keypad_code_entry.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.succeeded'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected action attempt. */ action_attempt_id: string; /** Type of the action. */ action_type: string; /** Status of the action. */ status: string; /** ID of the device associated with the action attempt, if applicable. */ device_id?: string | undefined; /** ID of the connected account associated with the action attempt, if applicable. */ connected_account_id?: string | undefined; event_type: 'action_attempt.simulate_manual_lock_via_keypad.failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_succeeded'; /** ID of the connected account associated with the event. */ connected_account_id: string; /** Custom metadata of the connected account; present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** The customer key associated with this connect webview, if any. */ customer_key?: string | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected Connect Webview. */ connect_webview_id: string; event_type: 'connect_webview.login_failed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.added'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.converted_to_unmanaged'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.converted_to_managed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.unmanaged.disconnected'; /** Error code associated with the disconnection event, if any. */ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected' | 'bridge_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.tampered'; /** Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state. */ is_detached_from_mounting_plate?: boolean | undefined; /** Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state. */ is_casing_tampered_with?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.low_battery'; /** Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event. * @deprecated Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery.*/ battery_level: number; /** Number in the range 0 to 1.0 indicating the affected device's own battery level, when known. */ device_battery_level?: number | undefined; /** 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. */ accessory_keypad_battery_level?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.battery_status_changed'; /** Battery status of the affected device, calculated from the numeric `battery_level` value. */ battery_status: 'critical' | 'low' | 'good' | 'full'; /** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */ battery_level: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.removed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.deleted'; /** 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. */ device_name?: (string | null) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.third_party_integration_no_longer_detected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_activated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.salto.privacy_mode_deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_became_flaky'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.connection_stabilized'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.error.subscription_required.resolved'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_connected'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.accessory_keypad_disconnected'; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'noise_sensor.noise_threshold_triggered'; /** Detected noise level in decibels. */ noise_level_decibels?: number | undefined; /** Detected noise level in Noiseaware Noise Risk Score (NRS). */ noise_level_nrs?: number | undefined; /** ID of the noise threshold that was triggered. */ noise_threshold_id?: string | undefined; /** Name of the noise threshold that was triggered. */ noise_threshold_name?: string | undefined; /** Metadata from Noiseaware. */ noiseaware_metadata?: { [x: string]: unknown; } | undefined; /** Metadata from Minut. */ minut_metadata?: { [x: string]: unknown; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.locked'; /** ID of the access code that was used to lock the device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the lock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the lock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the lock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the lock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.unlocked'; /** ID of the access code that was used to unlock the affected device. */ access_code_id?: string | undefined; /** 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. */ code?: string | undefined; /** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined; /** 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). */ action_attempt_id?: string | undefined; /** 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. */ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'remote' | 'card' | 'mobile_key'; /** ID of the user identity associated with the unlock event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the unlock event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the unlock event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the unlock event. */ acs_entrance_id?: string | undefined; /** 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. */ is_via_bluetooth?: boolean | undefined; /** 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. */ is_via_nfc?: boolean | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id?: string | undefined; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.access_denied'; /** ID of the access code that was used in the unlock attempts. */ access_code_id?: string | undefined; /** ID of the user identity associated with the access-denied event. */ user_identity_id?: string | undefined; /** ID of the ACS system associated with the access-denied event. */ acs_system_id?: string | undefined; /** ID of the ACS user associated with the access-denied event. */ acs_user_id?: string | undefined; /** ID of the ACS entrance associated with the access-denied event. */ acs_entrance_id?: string | undefined; /** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */ reason?: { /** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */ reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error' | 'connection_error'; /** Human-readable explanation of why access was denied. */ message: string; } | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.jammed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_opened'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'lock.door_closed'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.climate_preset_activated'; /** ID of the thermostat schedule that prompted the affected climate preset to be activated. */ thermostat_schedule_id: string | null; /** Key of the climate preset that was activated. */ climate_preset_key: string; /** Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat. */ is_fallback_climate_preset: boolean; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** 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`. */ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined; /** 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`. */ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined; /** 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). */ cooling_set_point_celsius?: (number | undefined) | undefined; /** 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). */ heating_set_point_celsius?: (number | undefined) | undefined; /** 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). */ cooling_set_point_fahrenheit?: (number | undefined) | undefined; /** 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). */ heating_set_point_fahrenheit?: (number | undefined) | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat_schedule.climate_preset_activation_may_fail'; /** ID of the thermostat schedule whose climate preset activation may fail. */ thermostat_schedule_id: string; /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_starts_at: string; /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ thermostat_schedule_ends_at: string; /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the connected account. */ connected_account_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; /** Errors associated with the device. */ device_errors: { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; }[]; /** Warnings associated with the device. */ device_warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: string; }[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_threshold_no_longer_exceeded'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Upper temperature limit, in °C, defined by the set threshold. */ upper_limit_celsius: number | null; /** Upper temperature limit, in °F, defined by the set threshold. */ upper_limit_fahrenheit: number | null; /** Lower temperature limit, in °C, defined by the set threshold. */ lower_limit_celsius: number | null; /** Lower temperature limit, in °F, defined by the set threshold. */ lower_limit_fahrenheit: number | null; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_reached_set_point'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; /** Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_celsius?: number | undefined; /** Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point. */ desired_temperature_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'thermostat.temperature_changed'; /** Temperature, in °C, reported by the affected thermostat. */ temperature_celsius: number; /** Temperature, in °F, reported by the affected thermostat. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_changed'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.temperature_reached_set_point'; /** Water temperature, in °C, reported by the affected pool or spa. */ temperature_celsius: number; /** Water temperature, in °F, reported by the affected pool or spa. */ temperature_fahrenheit: number; /** Desired water temperature, in °C, defined by the heating set point of the affected pool or spa. */ desired_temperature_celsius: number; /** Desired water temperature, in °F, defined by the heating set point of the affected pool or spa. */ desired_temperature_fahrenheit: number; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'pool.manually_adjusted'; /** 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. */ method: 'seam' | 'external'; /** New heating mode of the affected pool or spa. Present only if the mode changed. */ controller_mode?: ('heat' | 'off') | undefined; /** New heating set point, in °C, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_celsius?: number | undefined; /** New heating set point, in °F, of the affected pool or spa. Present only if the set point changed. */ heating_set_point_fahrenheit?: number | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.name_changed'; /** The new name of the affected device. */ device_name: string; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'camera.activated'; /** Whether motion detection activated the camera, if known. */ is_motion_detected?: boolean | undefined; /** Sub-type of motion detected, if available. */ motion_sub_type?: ('human' | 'vehicle' | 'package' | 'other') | undefined; /** URL to a thumbnail image captured at the time of activation. */ image_url?: string | undefined; /** URL to a short video clip captured at the time of activation. */ video_url?: string | undefined; /** IDs of the media, such as a video clip and a thumbnail image, captured for this activation. Use `/media/get` to retrieve each one. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected device. */ device_id: string; /** ID of the connected account associated with the event. */ connected_account_id: string; /** The customer key associated with the device, if any. */ customer_key?: string | undefined; /** Custom metadata of the device, present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; /** Custom metadata of the connected account, present when connected_account_id is provided. */ connected_account_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'device.doorbell_rang'; /** URL to a thumbnail image captured at the time the doorbell was pressed. */ image_url?: string | undefined; /** URL to a short video clip captured at the time the doorbell was pressed. */ video_url?: string | undefined; /** 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. */ media_ids?: string[] | undefined; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected enrollment automation. */ enrollment_automation_id: string; event_type: 'enrollment_automation.deleted'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected phone device. */ device_id: string; /** Custom metadata of the device; present when device_id is provided. */ device_custom_metadata?: { [x: string]: string | boolean; } | undefined; event_type: 'phone.deactivated'; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.device_membership_changed'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices currently attached to the space. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.created'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was created. */ device_ids: string[]; /** IDs of all ACS entrances attached to the space when it was created. */ acs_entrance_ids: string[]; } | { /** ID of the event. */ event_id: string; /** ID of the workspace associated with the event. */ workspace_id: string; /** Date and time at which the event was created. */ created_at: string; /** Date and time at which the event occurred. */ occurred_at: string; /** 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. */ event_description: string; /** ID of the affected space. */ space_id: string; /** Type of the event. */ event_type: 'space.deleted'; /** Unique key for the space within the workspace. */ space_key?: string | undefined; /** IDs of all devices attached to the space when it was deleted. */ device_ids: string[]; /** IDs of all ACS entrances currently attached to the space when it was deleted. */ acs_entrance_ids: string[]; })[] | undefined; instant_keys?: { /** ID of the Instant Key. */ instant_key_id: string; /** ID of the workspace that contains the Instant Key. */ workspace_id: string; /** Date and time at which the Instant Key was created. */ created_at: string; /** 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. */ instant_key_url: string; /** ID of the client session associated with the Instant Key. */ client_session_id: string; /** ID of the user identity associated with the Instant Key. */ user_identity_id: string; /** Date and time at which the Instant Key expires. */ expires_at: string; /** ID of the customization profile associated with the Instant Key. */ customization_profile_id?: string | undefined; /** Customization applied to the Instant Key UI. */ customization?: { /** Primary color used in the Instant Key UI. */ primary_color?: string | undefined; /** Secondary color used in the Instant Key UI. */ secondary_color?: string | undefined; /** URL of the logo displayed on the Instant Key. */ logo_url?: string | undefined; /** 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. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; } | undefined; }[] | undefined; acs_credentials?: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }[] | undefined; unmanaged_acs_credentials?: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }[] | undefined; unmanaged_access_codes?: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates that Seam does not manage the access code. */ is_managed: false; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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. * @deprecated Use `display_status` to show a person the code's state.*/ status: 'set' | 'unset'; /** 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. */ display_status: string; /** 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. */ cannot_be_managed?: true | undefined; /** 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. */ cannot_delete_unmanaged_access_code?: true | undefined; /** Metadata for a dormakaba Oracode unmanaged access code. Only present for unmanaged access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; }[] | undefined; access_codes?: { /** Unique identifier for the Seam workspace associated with the access code. */ workspace_id: string; /** Unique identifier for a group of access codes that share the same code. */ common_code_key: string | null; /** Indicates whether the code is set on the device according to a preconfigured schedule. */ is_scheduled_on_device?: boolean | undefined; /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */ type: 'time_bound' | 'ongoing'; /** Indicates whether the access code is waiting for a code assignment. */ is_waiting_for_code_assignment?: boolean | undefined; /** Unique identifier for the access code. */ access_code_id: string; /** Unique identifier for the device associated with the access code. */ device_id: string; /** 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). */ name: string | null; /** Code used for access. Typically, a numeric or alphanumeric string. */ code: string | null; /** Date and time at which the access code was created. */ created_at: string; /** Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ errors: ({ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'provider_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_set_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_remove_from_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'duplicate_code_on_device'; /** ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it. */ unmanaged_access_code_id?: string | undefined; /** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */ managed_access_code_id?: string | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'no_space_for_access_code_on_device'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'conflicting_external_modification'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_code_inactive'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_update'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that this is an access code error. */ is_access_code_error: true; /** Date and time at which Seam created the error. */ created_at?: string | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_delete'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'account_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'salto_ks_subscription_limit_exceeded'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'insufficient_permissions'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is not a device error. */ is_device_error: false; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'dormakaba_sites_disconnected'; /** Indicates that the error is a [connected account](https://www.seam.co/docs/api/connected_accounts/object) error. */ is_connected_account_error: true; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_offline'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_removed'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'hub_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'device_disconnected'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'empty_backup_access_code_pool'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'august_lock_not_authorized'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'low_battery'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'missing_device_credentials'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'auxiliary_heat_running'; } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates that the error is a device error. */ is_device_error: true; /** Date and time at which Seam created the error. */ created_at: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'subscription_required'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Indicates whether the error is related specifically to the connected account. */ is_connected_account_error?: boolean | undefined; /** Indicates whether the error is related to [Seam Bridge](https://www.seam.co/docs/capability-guides/seam-bridge). */ is_bridge_error?: boolean | undefined; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'bridge_disconnected'; })[]; /** Warnings associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes). */ warnings: ({ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'code_rotates_periodically'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'time_frame_adjusted_for_unknown_time_zone'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'external_modification_in_effect'; /** 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. */ change_type?: ('modified' | 'removed') | undefined; /** List of fields that were changed externally, with their previous and new values. */ modified_fields?: { /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */ field: string; /** The previous value of the field. */ from: string | null; /** The new value of the field. */ to: string | null; }[] | undefined; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_setting_on_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'third_party_integration_detected'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'igloo_algopin_must_be_used_within_24_hours'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'management_transferred'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'using_backup_access_code'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'device_unreachable_for_extended_period'; /** Date and time since which Seam has been unable to reach the device. */ device_unreachable_since: string; } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the warning. */ created_at?: string | undefined; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_access_code'; })[]; /** Indicates whether Seam manages the access code. */ is_managed: true; /** Date and time at which the time-bound access code becomes active. */ starts_at?: (string | null) | undefined; /** Date and time after which the time-bound access code becomes inactive. */ ends_at?: (string | null) | undefined; /** 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). * @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`.*/ status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'; /** 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`. */ display_status: string; /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */ is_backup_access_code_available: boolean; /** Indicates whether the access code is a backup code. */ is_backup?: boolean | undefined; /** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */ pulled_backup_access_code_id?: (string | null) | undefined; /** Indicates whether changes to the access code from external sources are permitted. */ is_external_modification_allowed: boolean; /** Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use. */ is_one_time_use: boolean; /** 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. */ is_offline_access_code: boolean; /** Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices. */ dormakaba_oracode_metadata?: ({ /** Dormakaba Oracode stay ID associated with this access code. */ stay_id?: (number | undefined) | undefined; /** Dormakaba Oracode user level ID associated with this access code. */ user_level_id?: (string | undefined) | undefined; /** Dormakaba Oracode user level name associated with this access code. */ user_level_name?: ((string | null) | undefined) | undefined; /** Dormakaba Oracode site name associated with this access code. */ site_name?: (string | undefined) | undefined; /** Indicates whether the stay can be cancelled via the Dormakaba Oracode API. */ is_cancellable?: (boolean | undefined) | undefined; /** Indicates whether the stay can be extended via the Dormakaba Oracode API. */ is_extendable?: (boolean | undefined) | undefined; /** Indicates whether early check-in is available for this stay. */ is_early_checkin_able?: (boolean | undefined) | undefined; /** Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached. */ is_overridable?: (boolean | undefined) | undefined; } | null) | undefined; /** Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of setting an access code on the device. */ mutation_code: 'creating'; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */ mutation_code: 'deferring_creation'; /** Date and time at which Seam will attempt to program this access code on the device. */ scheduled_at: string; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of removing an access code from the device. */ mutation_code: 'deleting'; /** 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. */ is_code_usable: boolean; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device. */ mutation_code: 'updating_code'; /** Previous code configuration. */ from: { /** Previous PIN code. */ code: string | null; }; /** New code configuration. */ to: { /** New PIN code. */ code: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device. */ mutation_code: 'updating_name'; /** Previous name configuration. */ from: { /** Previous access code name. */ name: string | null; }; /** New name configuration. */ to: { /** New access code name. */ name: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device. */ mutation_code: 'updating_time_frame'; /** Previous time frame configuration. */ from: { /** Previous start time for the access code. */ starts_at: string | null; /** Previous end time for the access code. */ ends_at: string | null; }; /** New time frame configuration. */ to: { /** New start time for the access code. */ starts_at: string | null; /** New end time for the access code. */ ends_at: string | null; }; })[]; }[] | undefined; thermostat_daily_programs?: { /** ID of the thermostat daily program. */ thermostat_daily_program_id: string; /** ID of the thermostat device on which the thermostat daily program is configured. */ device_id: string; /** User-friendly name to identify the thermostat daily program. */ name: string | null; /** Array of thermostat daily program periods. */ periods: { /** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ starts_at_time: string; /** 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`. */ climate_preset_key: string; }[]; /** ID of the workspace that contains the thermostat daily program. */ workspace_id: string; /** Date and time at which the thermostat daily program was created. */ created_at: string; }[] | undefined; thermostat_schedules?: { /** ID of the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ thermostat_schedule_id: string; /** ID of the desired [thermostat](https://www.seam.co/docs/capability-guides/thermostats) device. */ device_id: string; /** User-friendly name to identify the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ name: string | null; /** 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). */ climate_preset_key: string; /** 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). */ max_override_period_minutes?: (number | null) | undefined; /** 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. */ starts_at: string; /** 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. */ is_override_allowed?: boolean | undefined; /** 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. */ ends_at: string; /** ID of the workspace that contains the thermostat schedule. */ workspace_id: string; /** Date and time at which the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) was created. */ created_at: string; /** Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ errors: { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules). */ warnings: { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'climate_preset_activation_may_fail'; }[]; }[] | undefined; noise_thresholds?: { /** Unique identifier for the noise threshold. */ noise_threshold_id: string; /** Unique identifier for the device that contains the noise threshold. */ device_id: string; /** Name of the noise threshold. */ name: string; /** 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). */ noise_threshold_nrs?: number | undefined; /** Time at which the noise threshold should become active daily. */ starts_daily_at: string; /** Time at which the noise threshold should become inactive daily. */ ends_daily_at: string; /** Noise level in decibels for the noise threshold. */ noise_threshold_decibels: number; }[] | undefined; customization_profiles?: { workspace_id: string; name: string | null; customization_profile_id: string; /** 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. */ customer_key: string | null; created_at: string; /** Whether this is the workspace's default profile, used for access grants and Instant Keys created without a customization profile. */ is_workspace_default: boolean; logo_url?: string | undefined; primary_color?: string | undefined; secondary_color?: string | undefined; customer_portal_theme?: { primary_color?: string | undefined; primary_foreground_color?: string | undefined; secondary_color?: string | undefined; secondary_foreground_color?: string | undefined; font_family?: string | undefined; mono_font_family?: string | undefined; } | undefined; /** Theme for the Instant Keys apps. */ instant_key_theme?: { /** Corner radius for the Instant Key UI, as a CSS length such as `0.875rem` or `14px`. */ radius?: string | undefined; /** Font family for the Instant Key UI. The apps use the closest system typeface: sans-serif, serif, or monospace. */ font_family?: string | undefined; /** Whether the key card shows its default texture over the key card gradient, or the gradient alone. */ key_card_texture?: ('default' | 'none') | undefined; /** 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. */ light?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; /** 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. */ dark?: { /** App background. */ background?: string | undefined; /** Default text color. */ foreground?: string | undefined; /** Card background. */ card?: string | undefined; /** Text color on cards. */ card_foreground?: string | undefined; /** Dialog and sheet background. */ popover?: string | undefined; /** Text color on dialogs and sheets. */ popover_foreground?: string | undefined; /** Primary buttons and highlights. */ primary?: string | undefined; /** Text color on `primary`. */ primary_foreground?: string | undefined; /** Secondary buttons. */ secondary?: string | undefined; /** Text color on `secondary`. */ secondary_foreground?: string | undefined; /** Subtle backgrounds, such as the unlock sheet header. */ muted?: string | undefined; /** Secondary text. */ muted_foreground?: string | undefined; /** Pressed and hovered backgrounds. */ accent?: string | undefined; /** Text color on `accent`. */ accent_foreground?: string | undefined; /** Errors and destructive actions. */ destructive?: string | undefined; /** Text color on `destructive`. */ destructive_foreground?: string | undefined; /** Borders and dividers. */ border?: string | undefined; /** Input borders. */ input?: string | undefined; /** Focus rings. */ ring?: string | undefined; /** Successful unlocks. */ success?: string | undefined; /** Text color on `success`. */ success_foreground?: string | undefined; /** Start of the key card gradient. */ key_card?: string | undefined; /** End of the key card gradient. */ key_card_end?: string | undefined; /** Text and logo color on the key card. */ key_card_foreground?: string | undefined; /** Start of the unlock button gradient. */ unlock?: string | undefined; /** End of the unlock button gradient. */ unlock_end?: string | undefined; /** Icon color on the unlock button. */ unlock_foreground?: string | undefined; } | undefined; } | undefined; message_overrides?: { [x: string]: { [x: string]: string; }; } | undefined; /** 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. */ customer_portal_features?: { /** Configuration for the connect accounts feature. */ connect?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** List of provider keys to allow for the connect feature. These providers will be shown when the customer tries to connect an account. */ accepted_providers?: (string[] | undefined) | undefined; /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */ excluded_providers?: (string[] | undefined) | undefined; } | undefined; /** Configuration for the manage feature. */ manage?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can manage reservations for their properties. */ exclude_reservation_management?: boolean | undefined; /** Indicates whether to exclude technical details from reservation views. */ exclude_reservation_technical_details?: boolean | undefined; /** Indicates whether the customer can manage staff for their properties. */ exclude_staff_management?: boolean | undefined; /** Indicates whether to prevent the customer from converting their devices between managed and unmanaged. Managed devices are billed. */ exclude_device_management?: boolean | undefined; /** Configuration for event type filtering in the manage feature. */ events?: ({ /** 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. */ allowed_events?: string[] | undefined; /** List of event types that are pre-selected in the events filter when the user first loads the events tab. */ default_events?: string[] | undefined; } | undefined) | undefined; /** 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. */ device_management_confirmation?: ({ /** Custom title for the confirmation modal. */ title?: string | undefined; /** 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. */ body?: string | undefined; /** Custom label for the confirm button. */ confirm_button_label?: string | undefined; /** Custom label for the cancel button. */ cancel_button_label?: string | undefined; } | undefined) | undefined; } | undefined; /** Configuration for the manage devices feature. * @deprecated Use `manage` instead.*/ manage_devices?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the organize feature. */ organize?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; } | undefined; /** Configuration for the configure feature. */ configure?: { /** Whether to exclude this feature from the portal. */ exclude?: boolean | undefined; /** Indicates whether the customer can customize the access automation rules for their properties. */ allow_access_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the climate automation rules for their properties. */ allow_climate_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sound automation rules for their properties. */ allow_sound_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the sensor automation rules for their properties. */ allow_sensor_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the pool heating automation rules for their properties. */ allow_pool_automation_rule_customization?: boolean | undefined; /** Indicates whether the customer can customize the Instant Key profile for their properties. */ allow_instant_key_customization?: boolean | undefined; /** Indicates whether the customer can customize their notification settings, such as the low-battery alert threshold. */ allow_notification_customization?: boolean | undefined; /** Indicates whether the customer can move a connected account to a new Seam Bridge when its current bridge is disconnected. */ allow_bridge_replacement?: boolean | undefined; } | undefined; } | undefined; }[] | undefined; }; }; maxDuration: undefined; }; '/workspaces/get': { route: '/workspaces/get'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** 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). */ workspace: { /** ID of the workspace. */ workspace_id: string; /** Name of the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ name: string; /** Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). * @deprecated Use `connect_partner_name` instead.*/ company_name: string; /** Indicates whether the workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). */ is_sandbox: boolean; connect_webview_customization: { /** 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). */ primary_button_color?: string | undefined; /** 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). */ primary_button_text_color?: string | undefined; /** 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). */ success_message?: string | undefined; /** 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). */ logo_shape?: ('circle' | 'square') | undefined; /** 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). */ inviter_logo_url?: string | undefined; }; /** 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. */ is_suspended: boolean; /** Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ connect_partner_name: string | null; /** 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. */ publishable_key?: string | undefined; /** Indicates whether publishable key authentication is enabled for this workspace. */ is_publishable_key_auth_enabled: boolean; /** ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization. */ organization_id: string | null; }; }; maxDuration: undefined; }; '/workspaces/list': { route: '/workspaces/list'; method: 'GET' | 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { workspaces: { /** ID of the workspace. */ workspace_id: string; /** Name of the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ name: string; /** Company name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). * @deprecated Use `connect_partner_name` instead.*/ company_name: string; /** Indicates whether the workspace is a [sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces#sandbox-workspaces). */ is_sandbox: boolean; connect_webview_customization: { /** 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). */ primary_button_color?: string | undefined; /** 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). */ primary_button_text_color?: string | undefined; /** 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). */ success_message?: string | undefined; /** 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). */ logo_shape?: ('circle' | 'square') | undefined; /** 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). */ inviter_logo_url?: string | undefined; }; /** 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. */ is_suspended: boolean; /** Seam Connect partner name associated with the [workspace](https://www.seam.co/docs/core-concepts/workspaces). */ connect_partner_name: string | null; /** 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. */ publishable_key?: string | undefined; /** Indicates whether publishable key authentication is enabled for this workspace. */ is_publishable_key_auth_enabled: boolean; /** ID of the organization to which the workspace belongs, or `null` if the workspace is not assigned to an organization. */ organization_id: string | null; }[]; }; maxDuration: undefined; }; '/workspaces/reset_sandbox': { route: '/workspaces/reset_sandbox'; method: 'POST'; queryParams: {}; jsonBody: {}; commonParams: {}; formData: {}; jsonResponse: { /** 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. When 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. See also [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts). */ action_attempt: { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the lock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of locking a door. */ action_type: 'LOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Result of the action. */ result: { /** Indicates whether the device confirmed that the unlock action occurred. */ was_confirmed_by_device?: boolean | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of unlocking a door. */ action_type: 'UNLOCK_DOOR'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; /** 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. */ result: { /** Snapshot of credential data read from the physical encoder. */ acs_credential_on_encoder: { /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string | null; /** Indicates whether the credential has been issued (encoded onto a card). */ is_issued: boolean | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) becomes usable. */ starts_at: string | null; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) will stop being usable. */ ends_at: string | null; /** 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). */ card_number: string | null; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card ID for the Visionline card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_id?: (string | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is cancelled. */ cancelled?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is discarded. */ discarded?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is expired. */ expired?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overwritten. */ overwritten?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is overridden. */ overridden?: (boolean | undefined) | undefined; /** Indicates whether the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is pending auto-update. */ pending_auto_update?: (boolean | undefined) | undefined; /** Format of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_format?: (('TLCode' | 'rfid48') | undefined) | undefined; /** Holder of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_holder?: (string | undefined) | undefined; /** Number of issued cards associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ number_of_issued_cards?: (number | undefined) | undefined; /** 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). */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** 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). */ common_acs_entrance_ids?: (string[] | undefined) | undefined; } | undefined; } | null; /** Corresponding credential data as stored on Seam and the access system. */ acs_credential_on_seam: ({ /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }) | null; /** 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. */ warnings: { /** Indicates a warning related to scanning a credential. */ warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found'; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ warning_message: string; }[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a credential. */ action_type: 'SCAN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; /** Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; } | { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; is_managed: false; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of encoding credential data from the physical encoder onto a card. */ action_type: 'ENCODE_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate an incompatible card format. */ type: 'incompatible_card_format'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the affected credential cannot be reissued. */ type: 'credential_cannot_be_reissued'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the encoder is not online. */ type: 'encoder_not_online'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that communication with the encoder timed out. */ type: 'encoder_communication_timeout'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system. */ type: 'bridge_disconnected'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete. */ type: 'encoding_interrupted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; } | { /** Error type to indicate that the credential was deleted and can no longer be encoded. */ type: 'credential_deleted'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; /** Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned. */ result: { /** ID of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ acs_credential_id: string; /** 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. */ acs_user_id?: string | undefined; /** 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. */ user_identity_id?: string | undefined; /** 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. */ connected_account_id: string; /** ID of the credential pool to which the credential belongs. */ acs_credential_pool_id?: string | undefined; /** 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). */ acs_system_id: string; /** ID of the parent [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ parent_acs_credential_id?: string | undefined; /** Display name that corresponds to the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) type. */ display_name: string; /** Access (PIN) code for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ code?: (string | undefined) | null; /** 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. */ is_one_time_use?: boolean | undefined; /** Number of the card associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ card_number?: (string | undefined) | null; /** Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been encoded onto a card. */ is_issued?: boolean | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was encoded onto a card. */ issued_at?: (string | undefined) | null; /** 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`. */ access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** 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`. */ external_type?: ('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') | undefined; /** 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. */ external_type_display_name?: string | undefined; /** Date and time at which the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) was created. */ created_at: string; /** ID of the workspace that contains the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ workspace_id: string; /** 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. */ starts_at?: string | undefined; /** 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`. */ ends_at?: string | undefined; /** Errors associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ errors: { error_code: string; message: string; /** Date and time at which Seam created the error. */ created_at: string; }[]; /** Warnings associated with the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'waiting_to_be_issued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_externally_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_modified'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'unknown_issue_with_acs_credential'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** 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). */ is_multi_phone_sync_credential?: boolean | undefined; /** 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. */ is_latest_desired_state_synced_with_provider?: (boolean | null) | undefined; /** 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. */ latest_desired_state_synced_with_provider_at?: (string | null) | undefined; /** Visionline-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ visionline_metadata?: { /** Card function type in the Visionline access system. */ card_function_type?: (('guest' | 'staff') | undefined) | undefined; /** IDs of the credentials to which you want to join. */ joiner_acs_credential_ids?: (string[] | undefined) | undefined; /** Guest entrance IDs in the Visionline access system. */ guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Common entrance IDs in the Visionline access system. */ common_acs_entrance_ids?: (string[] | undefined) | undefined; /** Indicates whether the credential is valid. */ is_valid?: (boolean | undefined) | undefined; /** 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. */ auto_join?: (boolean | undefined) | undefined; /** ID of the card in the Visionline access system. */ card_id?: (string | undefined) | undefined; /** ID of the credential in the Visionline access system. */ credential_id?: (string | undefined) | undefined; } | undefined; /** Vostio-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ assa_abloy_vostio_metadata?: { /** 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. */ auto_join?: (boolean | undefined) | undefined; /** IDs of the guest entrances to override in the Vostio access system. */ override_guest_acs_entrance_ids?: (string[] | undefined) | undefined; /** Key ID in the Vostio access system. */ key_id?: (string | undefined) | undefined; /** Key issuing request ID in the Vostio access system. */ key_issuing_request_id?: (string | undefined) | undefined; /** Names of the doors to which to grant access in the Vostio access system. */ door_names?: (string[] | undefined) | undefined; /** Endpoint ID in the Vostio access system. */ endpoint_id?: (string | undefined) | undefined; } | undefined; /** Akiles-specific metadata for the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials). */ akiles_metadata?: { /** ID of the Akiles member PIN. */ member_pin_id?: (string | undefined) | undefined; } | undefined; /** Indicates whether Seam manages the credential. */ is_managed: true; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user. */ action_type: 'SCAN_TO_ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that there is no credential on the encoder. */ type: 'no_credential_on_encoder'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; /** Result of assigning a credential. If successful, includes the updated access method with the assigned credential. */ result: { /** ID of the Seam workspace associated with the access method. */ workspace_id: string; /** ID of the access method. */ access_method_id: string; /** Display name of the access method. */ display_name: string; /** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */ mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'; /** Date and time at which the access method was created. */ created_at: string; /** Date and time at which the access method was issued. */ issued_at: string | null; /** Indicates whether the access method has been issued. */ is_issued: boolean; /** 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`. */ display_status: string; /** URL of the Instant Key for mobile key access methods. */ instant_key_url?: string | undefined; /** Token of the client session associated with the access method. */ client_session_token?: string | undefined; /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */ is_encoding_required?: boolean | undefined; /** 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`. */ is_ready_for_encoding?: boolean | undefined; /** 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. */ is_assignment_required?: boolean | undefined; /** 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. */ is_ready_for_assignment?: boolean | undefined; /** The actual PIN code for code access methods. */ code?: (string | null) | undefined; /** Warnings associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ warnings: ({ /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'being_deleted'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'updating_access_times'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'pulled_backup_access_code'; /** ID of the original access method from which this backup access method was split, if applicable. */ original_access_method_id?: string | undefined; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_issuing'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_email_address'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'user_identity_missing_phone_number'; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'requested_code_unavailable'; /** The originally requested PIN code that could not be used. */ original_code: string; /** The PIN code that was assigned instead. */ new_code: string; } | { /** Date and time at which Seam created the warning. */ created_at: string; /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'schedule_rounded_up'; })[]; /** Errors associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant). */ errors: ({ /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'failed_to_issue'; } | { /** Date and time at which Seam created the error. */ created_at: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'access_not_provisioned'; })[]; /** 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. */ pending_mutations: ({ /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */ mutation_code: 'provisioning_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access was provisioned. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access is being provisioned. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */ mutation_code: 'revoking_access'; /** Previous device configuration. */ from: { /** Previous device IDs where access existed. */ device_ids: string[]; }; /** New device configuration. */ to: { /** New device IDs where access should remain. */ device_ids: string[]; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */ mutation_code: 'updating_access_times'; /** Previous access time configuration. */ from: { /** Previous start time for access. */ starts_at: string | null; /** Previous end time for access. */ ends_at: string | null; }; /** New access time configuration. */ to: { /** New start time for access. */ starts_at: string | null; /** New end time for access. */ ends_at: string | null; }; } | { /** Date and time at which the mutation was created. */ created_at: string; /** Detailed description of the mutation. */ message: string; /** 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. */ mutation_code: 'waiting_for_access_on_acs_system'; })[]; /** ID of the customization profile associated with the access method. */ customization_profile_id?: string | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of assigning a pre-registered card credential to an access method. */ action_type: 'ASSIGN_CREDENTIAL'; error: { /** Type of the error associated with the action attempt. */ type: 'uncategorized_error'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Type of the error associated with the action attempt. */ type: 'action_attempt_expired'; /** Message for the error associated with the action attempt. */ message: string; } | { /** Error type to indicate that no matching credential was found. */ type: 'credential_not_found'; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resetting a sandbox workspace. */ action_type: 'RESET_SANDBOX_WORKSPACE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the fan mode on a thermostat. */ action_type: 'SET_FAN_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the HVAC mode on a thermostat. */ action_type: 'SET_HVAC_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of a climate preset activation. */ action_type: 'ACTIVATE_CLIMATE_PRESET'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of returning a thermostat to its weekly program. */ action_type: 'ACTIVATE_WEEKLY_PROGRAM'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a keypad code entry. */ action_type: 'SIMULATE_KEYPAD_CODE_ENTRY'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of simulating a manual lock action using a keypad. */ action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pushing thermostat programs. */ action_type: 'PUSH_THERMOSTAT_PROGRAMS'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of configuring the auto-lock on a lock. */ action_type: 'CONFIGURE_AUTO_LOCK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of converting an unmanaged access code to a managed access code. */ action_type: 'CONVERT_ACCESS_CODE_TO_MANAGED'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of setting the volume on a speaker. */ action_type: 'SET_SPEAKER_VOLUME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of muting or unmuting a speaker. */ action_type: 'SET_SPEAKER_MUTE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was paused, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of pausing playback on a speaker. */ action_type: 'PAUSE_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Result of the action. */ result: { /** IDs of the speakers whose playback was resumed, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of resuming playback on a speaker. */ action_type: 'RESUME_SPEAKER_PLAYBACK'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a chime on a speaker. */ action_type: 'PLAY_SPEAKER_CHIME'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Result of the action. */ result: { /** IDs of the speakers now playing the favorite, including speakers grouped with the requested speaker. */ affected_device_ids: string[]; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing a favorite on a speaker. */ action_type: 'PLAY_SPEAKER_FAVORITE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Action attempt to track the status of playing an audio clip on a speaker. */ action_type: 'PLAY_SPEAKER_AUDIO_CLIP'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** 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. */ action_type: 'SET_TEMPERATURE_CONTROLLER_MODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Syncing access codes is pending. */ action_type: 'SYNC_ACCESS_CODES'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Syncing access codes succeeded. */ action_type: 'SYNC_ACCESS_CODES'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Syncing access codes failed. */ action_type: 'SYNC_ACCESS_CODES'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating an access code is pending. */ action_type: 'CREATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating an access code succeeded. */ action_type: 'CREATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Created access code. */ access_code: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating an access code failed. */ action_type: 'CREATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting an access code is pending. */ action_type: 'DELETE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting an access code succeeded. */ action_type: 'DELETE_ACCESS_CODE'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting an access code failed. */ action_type: 'DELETE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating an access code is pending. */ action_type: 'UPDATE_ACCESS_CODE'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating an access code succeeded. */ action_type: 'UPDATE_ACCESS_CODE'; /** Result of the action. */ result: { /** Updated access code. */ access_code?: { [x: string]: any; } | undefined; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating an access code failed. */ action_type: 'UPDATE_ACCESS_CODE'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Creating a noise threshold is pending. */ action_type: 'CREATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Creating a noise threshold succeeded. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Created noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Creating a noise threshold failed. */ action_type: 'CREATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Deleting a noise threshold is pending. */ action_type: 'DELETE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Deleting a noise threshold succeeded. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Result of the action. */ result: {}; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Deleting a noise threshold failed. */ action_type: 'DELETE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'pending'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for pending action attempts. */ result: null; /** Errors associated with the action attempt. Null for pending action attempts. */ error: null; /** Updating a noise threshold is pending. */ action_type: 'UPDATE_NOISE_THRESHOLD'; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'success'; /** Date and time at which the action attempt was created. */ created_at: string; /** Errors associated with the action attempt. Null for successful action attempts. */ error: null; /** Updating a noise threshold succeeded. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Result of the action. */ result: { /** Updated noise threshold. */ noise_threshold: { [x: string]: any; }; }; } | { /** ID of the action attempt. */ action_attempt_id: string; status: 'error'; /** Date and time at which the action attempt was created. */ created_at: string; /** Result of the action attempt. Null for failed action attempts. */ result: null; /** Updating a noise threshold failed. */ action_type: 'UPDATE_NOISE_THRESHOLD'; /** Error associated with the action. */ error: { /** Type of the error. */ type: string; /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string; }; }; }; maxDuration: undefined; }; '/workspaces/update': { route: '/workspaces/update'; method: 'POST' | 'PATCH'; queryParams: {}; jsonBody: { /** Name of the workspace. */ name?: string | undefined; /** 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. */ organization_id?: string | undefined; /** Connect partner name for the workspace. */ connect_partner_name?: string | undefined; /** [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). */ connect_webview_customization?: { /** 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). */ primary_button_color?: (string | null) | undefined; /** 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). */ primary_button_text_color?: (string | null) | undefined; /** 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). */ success_message?: (string | null) | undefined; /** 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). */ logo_shape?: (('circle' | 'square') | null) | undefined; } | undefined; /** Indicates whether publishable key authentication is enabled for this workspace. */ is_publishable_key_auth_enabled?: boolean | undefined; /** Indicates whether the workspace is suspended. */ is_suspended?: boolean | undefined; }; commonParams: {}; formData: {}; jsonResponse: {}; maxDuration: undefined; }; }; export type RouteResponse = Routes[Path]['jsonResponse']; export type RouteRequestBody = Routes[Path]['jsonBody'] & Routes[Path]['commonParams']; export type RouteRequestParams = Routes[Path]['queryParams'] & Routes[Path]['commonParams'];